mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-28 04:06:35 -05:00
Add gen7 SOS check
To be added shortly, false flags will happen until then. Split binaries for regular & SOS encounters
This commit is contained in:
@@ -699,6 +699,20 @@ private void verifyAbility()
|
||||
}
|
||||
}
|
||||
}
|
||||
if (pkm.GenNumber == 7)
|
||||
{
|
||||
if (EncounterType == typeof(EncounterSlot[]) && pkm.AbilityNumber == 4)
|
||||
{
|
||||
var slots = (EncounterSlot[])EncounterMatch;
|
||||
bool valid = slots.Any(slot => slot.Type == SlotType.SOS);
|
||||
|
||||
if (!valid)
|
||||
{
|
||||
AddLine(Severity.Invalid, "Hidden Ability on non-SOS wild encounter.", CheckIdentifier.Ability);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (pkm.GenNumber >= 6 && abilities[pkm.AbilityNumber >> 1] != pkm.Ability)
|
||||
|
||||
@@ -16,5 +16,6 @@ public enum SlotType
|
||||
Horde,
|
||||
FriendSafari,
|
||||
Special,
|
||||
SOS,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user