mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-11 14:14:57 -05:00
Add call rate check for SOS hidden ability
Probably could just yeet the encounter data for these impossible-to-reach SOS's since they're duplicate with the non-SOS slots, but whatever.
This commit is contained in:
parent
945ef24142
commit
dfbafee506
|
|
@ -294,6 +294,10 @@ private CheckResult VerifyAbility7(LegalityAnalysis data, IEncounterable enc)
|
|||
bool valid = slot.Area.Type == SlotType.SOS;
|
||||
if (!valid)
|
||||
return GetInvalid(LAbilityMismatchSOS);
|
||||
|
||||
var pi = PersonalTable.USUM[slot.Species];
|
||||
if (pi.EscapeRate == 0) // Can't SOS
|
||||
return GetInvalid(LAbilityHiddenFail);
|
||||
}
|
||||
if (Legal.Ban_NoHidden7.Contains(pkm.SpecForm) && pkm.AbilityNumber == 4)
|
||||
return GetInvalid(LAbilityHiddenUnavailable);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user