mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-10 22:00:16 -05:00
Prevent non-galar forms for wild match
uses the same logic as the wild area boost lines above
This commit is contained in:
parent
53cec64e5e
commit
3be4fde2d5
|
|
@ -21,7 +21,7 @@ protected override IEnumerable<EncounterSlot> GetMatchFromEvoLevel(PKM pkm, IEnu
|
|||
return boost.Where(s => s.LevelMax < 60 || s.IsLevelWithinRange(minLevel));
|
||||
}
|
||||
}
|
||||
var slots = Slots.Where(slot => vs.Any(evo => evo.Species == slot.Species && evo.Level >= (slot.LevelMin)));
|
||||
var slots = Slots.Where(slot => vs.Any(evo => evo.Species == slot.Species && evo.Form == slot.Form && evo.Level >= (slot.LevelMin)));
|
||||
|
||||
// Get slots where pokemon can exist with respect to level constraints
|
||||
return slots.Where(s => s.IsLevelWithinRange(minLevel));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user