Handle bad evolution table data edge case

for whatever reason, slowpoke's gen7 data -> slowking didn't clear the
level to 0; so handle the edge case by sanity checking
This commit is contained in:
Kurt
2017-09-05 22:11:52 -07:00
parent 76ff629006
commit 973675b6c4

View File

@@ -690,7 +690,7 @@ public IEnumerable<DexLevel> GetExplicitLineage(PKM pkm, int maxLevel, bool skip
private static void UpdateMinValues(IReadOnlyCollection<DexLevel> dl, EvolutionMethod evo)
{
var last = dl.Last();
if (evo.Level == 0) // Evolutions like elemental stones, trade, etc
if (evo.Level == 0 || !evo.RequiresLevelUp) // Evolutions like elemental stones, trade, etc
{
if (!evo.RequiresLevelUp)
last.MinLevel = 1;