Adjust levelmin on single evochain

Early return wasn't adjusting the minimum level; closes #2035
This commit is contained in:
Kurt
2018-06-27 17:41:53 -07:00
parent 3cf78ff3a2
commit 77aed3ea14
2 changed files with 3 additions and 1 deletions

View File

@@ -172,7 +172,10 @@ private static List<EvoCriteria> GetEvolutionChain(PKM pkm, IEncounterable Encou
if (Encounter.Species == maxspec)
{
if (vs.Count != 1)
{
vs.RemoveAll(z => z.Species != Encounter.Species);
vs[0].MinLevel = Encounter.LevelMin;
}
return vs;
}

View File

@@ -18,7 +18,6 @@ public LearnLookup(PersonalTable table, Learnset[] learn, GameVersion version)
Version = version;
Table = table;
Learn = learn;
}
public List<int> AddMovesIndex(List<int> moves, int index, int max, int min)