Allow gen5 deerling and sawsbuck slots to be any form [0,3]

This commit is contained in:
Kurt
2021-12-26 00:00:38 -08:00
parent 49a2cd19d0
commit 192ef23052

View File

@@ -60,7 +60,9 @@ public override IEnumerable<EncounterSlot> GetMatchingSlots(PKM pkm, IReadOnlyLi
if (!slot.IsLevelWithinRange(pkm.Met_Level))
break;
if (slot.Form != evo.Form) // no wild forms can change
// Deerling and Sawsbuck can change forms when seasons change, thus can be any of the [0,3] form values.
// no other wild forms can change
if (slot.Form != evo.Form && slot.Species is not ((int)Species.Deerling or (int)Species.Sawsbuck))
break;
yield return slot;