mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-15 08:47:14 +00:00
parent
2e1528b199
commit
5ac9782320
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue