Form check wild unown

Closes #2682
This commit is contained in:
Kurt 2020-02-04 17:38:35 -08:00
parent 2e1528b199
commit 5ac9782320

View file

@ -133,5 +133,12 @@ namespace PKHeX.Core
return slots.Where(slot => slot.LevelMin <= minLevel);
return slots.Where(s => s.IsLevelWithinRange(minLevel));
}
protected override IEnumerable<EncounterSlot> GetFilteredSlots(PKM pkm, IEnumerable<EncounterSlot> slots, int minLevel)
{
if (pkm.Species == (int) Species.Unown)
return slots.Where(z => z.Form == pkm.AltForm);
return slots;
}
}
}