From 2e4c75aca3c51bd42041f59599197e2fae6d0f31 Mon Sep 17 00:00:00 2001 From: Eskuero Date: Sun, 5 Jun 2016 19:49:20 +0100 Subject: [PATCH] Fix third gen balls on second gen starters with HA Second generation starters are legal with third generation introduced balls because you can catch their second stage on Pokemon Colosseum, but since back then Hidden Abilities didn't exist they're restricted to normal balls only. Other balls are checked already but this ones weren't flagged as illegal. --- Legality/Checks.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Legality/Checks.cs b/Legality/Checks.cs index 3b924e242..577bf5bd2 100644 --- a/Legality/Checks.cs +++ b/Legality/Checks.cs @@ -553,6 +553,8 @@ private LegalityCheck verifyBall() { if (Legal.Ban_Gen3Ball.Contains(pk6.Species)) return new LegalityCheck(Severity.Invalid, "Unobtainable capture for Gen4 Ball."); + if (pk6.AbilityNumber == 4 && 152 <= pk6.Species && pk6.Species <= 160) + return new LegalityCheck(Severity.Invalid, "Ball not possible for species with hidden ability."); return new LegalityCheck(Severity.Valid, "Obtainable capture for Gen4 Ball."); }