From 77aed3ea14fb6da24583fc9f4ced3712a972ed56 Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 27 Jun 2018 17:41:53 -0700 Subject: [PATCH] Adjust levelmin on single evochain Early return wasn't adjusting the minimum level; closes #2035 --- PKHeX.Core/Legality/Evolutions/EvolutionChain.cs | 3 +++ PKHeX.Core/Legality/Moves/LearnLookup.cs | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/PKHeX.Core/Legality/Evolutions/EvolutionChain.cs b/PKHeX.Core/Legality/Evolutions/EvolutionChain.cs index 635e36322..9170a673f 100644 --- a/PKHeX.Core/Legality/Evolutions/EvolutionChain.cs +++ b/PKHeX.Core/Legality/Evolutions/EvolutionChain.cs @@ -172,7 +172,10 @@ private static List 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; } diff --git a/PKHeX.Core/Legality/Moves/LearnLookup.cs b/PKHeX.Core/Legality/Moves/LearnLookup.cs index 9f783a20d..8b51744ca 100644 --- a/PKHeX.Core/Legality/Moves/LearnLookup.cs +++ b/PKHeX.Core/Legality/Moves/LearnLookup.cs @@ -18,7 +18,6 @@ public LearnLookup(PersonalTable table, Learnset[] learn, GameVersion version) Version = version; Table = table; Learn = learn; - } public List AddMovesIndex(List moves, int index, int max, int min)