From 908ff709c6d7a3301eec40d9cc724b0c218c284d Mon Sep 17 00:00:00 2001 From: Kaphotics Date: Sat, 26 Mar 2016 20:52:06 -0700 Subject: [PATCH] Add Apricorn & Hidden Ability check Thanks Eskuero! --- Legality/Checks.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Legality/Checks.cs b/Legality/Checks.cs index 30dc0dc6f..dfaab14d7 100644 --- a/Legality/Checks.cs +++ b/Legality/Checks.cs @@ -403,6 +403,9 @@ namespace PKHeX ? new LegalityCheck(Severity.Invalid, "Non-Pokéball on Male-Only egg.") : new LegalityCheck(Severity.Valid, "Pokéball on Male-Only egg."); + if (pk6.AbilityNumber == 4 && 0x10 < pk6.Ball && pk6.Ball < 0x18) // Apricorn Ball + return new LegalityCheck(Severity.Invalid, "Apricorn Ball with Hidden Ability."); + if (pk6.Species > 650 && pk6.Species != 700) // Sylveon return !Legal.WildPokeballs.Contains(pk6.Ball) ? new LegalityCheck(Severity.Invalid, "Unobtainable ball for Kalos origin.")