mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 22:40:22 +00:00
getMaxLevelGeneration should return met level when met level data is lost
This commit is contained in:
parent
0b0dd21d93
commit
56ccddce8d
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue