From f96eafa682f6e17652e77c040d6ac562cac20060 Mon Sep 17 00:00:00 2001 From: Archit Date Date: Sun, 24 Nov 2019 01:01:09 +0800 Subject: [PATCH] grab correct evo stage 1 from evocriteria list (#2503) EncounterMovesetGenerator was using the de-evolution order in the passed evocriteria list --- .../Legality/Encounters/Generator/EncounterMovesetGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.Core/Legality/Encounters/Generator/EncounterMovesetGenerator.cs b/PKHeX.Core/Legality/Encounters/Generator/EncounterMovesetGenerator.cs index 47806b9d1..43b4035b2 100644 --- a/PKHeX.Core/Legality/Encounters/Generator/EncounterMovesetGenerator.cs +++ b/PKHeX.Core/Legality/Encounters/Generator/EncounterMovesetGenerator.cs @@ -139,7 +139,7 @@ private static IEnumerable GetMovesForGeneration(PKM pk, IReadOnlyList moves = Legal.GetValidMoves(pk, dl, generation); if (generation >= 8) { - var evo = dl[0]; + var evo = dl[dl.Count - 1]; var shared = MoveEgg.GetEggMoves(pk, evo.Species, evo.Form, GameVersion.SW); moves = moves.Concat(shared); }