Move HA egg check back in gen8 format check

51875d27b2
Previous change ^ was short circuiting logic for gen5 eggs (unavailable HA for Serperior)

probably need to rewrite this method or maybe just delete these lines since they should fall through.
This commit is contained in:
Kurt 2022-12-04 00:10:43 -08:00
parent 3f4aa2f9f2
commit 339132e5dc

View file

@ -66,11 +66,11 @@ public sealed class AbilityVerifier : Verifier
}
var enc = data.EncounterMatch;
if (pk.AbilityNumber == 4 && enc.Ability.CanBeHidden())
return VALID;
if (format >= 8) // Ability Patch
{
if (pk.AbilityNumber == 4 && enc.Ability.CanBeHidden())
return VALID;
if (pk.AbilityNumber == 4)
{
if (AbilityChangeRules.IsAbilityPatchPossible(data.Info.EvoChainsAllGens))