grab correct evo stage 1 from evocriteria list (#2503)

EncounterMovesetGenerator was using the de-evolution order in the passed evocriteria list
This commit is contained in:
Archit Date
2019-11-24 01:01:09 +08:00
committed by Kurt
parent 27754afea8
commit f96eafa682

View File

@@ -139,7 +139,7 @@ private static IEnumerable<int> GetMovesForGeneration(PKM pk, IReadOnlyList<EvoC
IEnumerable<int> 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);
}