Prevent non-galar forms for wild match

uses the same logic as the wild area boost lines above
This commit is contained in:
Kurt 2019-11-16 10:35:08 -08:00
parent 53cec64e5e
commit 3be4fde2d5

View File

@ -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));