Example #1
0
        private void VerifyIVsGen7(LegalityAnalysis data)
        {
            var pkm = data.pkm;

            if (pkm.GO)
            {
                VerifyIVsGoTransfer(data);
            }
            else if (pkm.AbilityNumber == 4 && !AbilityVerifier.CanAbilityPatch(pkm.Format, pkm.PersonalInfo.Abilities, pkm.Species))
            {
                VerifyIVsFlawless(data, 2); // Chain of 10 yields 5% HA and 2 flawless IVs
            }
        }
Example #2
0
 private static bool IsHiddenAndNotPossible(PKM pkm)
 {
     if (pkm.AbilityNumber != 4)
         return false;
     return !AbilityVerifier.CanAbilityPatch(pkm.Format, pkm.PersonalInfo.Abilities, pkm.Species);
 }