getMaxLevelGeneration should return met level when met level data is lost

This commit is contained in:
javierhimura 2017-02-17 14:56:50 +01:00
parent 0b0dd21d93
commit 56ccddce8d

View file

@ -824,7 +824,10 @@ namespace PKHeX.Core
if (pkm.Gen3 && pkm.Format > 4 && pkm.Met_Level == pkm.CurrentLevel && FutureEvolutionsGen3_LevelUp.Contains(pkm.Species))
return pkm.Met_Level - 1;
return pkm.CurrentLevel;
if(!pkm.HasOriginalMetLocation))
return pkm.Met_Level;
return pkm.CurrentLevel;
}
internal static int getMinLevelGeneration(PKM pkm)