mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-07-31 13:46:09 -05:00
Encounter Slot met level check
Met Level should match the encounter slot's level. Obviously for past gen checks this can't happen as the met level is modified.
This commit is contained in:
parent
bc71969277
commit
fea468e112
|
|
@ -112,7 +112,9 @@ private static IEnumerable<EncounterSlot> getValidEncounterSlots(PK6 pk6, Encoun
|
|||
// Get Valid levels
|
||||
IEnumerable<DexLevel> vs = getValidPreEvolutions(pk6);
|
||||
// Get slots where pokemon can exist
|
||||
IEnumerable<EncounterSlot> slots = loc.Slots.Where(slot => vs.Any(evo => evo.Species == slot.Species && evo.Level >= slot.LevelMin));
|
||||
IEnumerable<EncounterSlot> slots = loc.Slots.Where(slot =>
|
||||
vs.Any(evo => evo.Species == slot.Species && evo.Level >= slot.LevelMin)
|
||||
&& pk6.Met_Level == slot.LevelMin);
|
||||
|
||||
// Filter for Form Specific
|
||||
if (WildForms.Contains(pk6.Species))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user