From 566609c6494228d292335515af222154d433a00a Mon Sep 17 00:00:00 2001 From: Kurt Date: Thu, 1 Dec 2016 20:02:13 -0800 Subject: [PATCH] Add missing ability checks Closes #550 --- PKHeX/Legality/Checks.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PKHeX/Legality/Checks.cs b/PKHeX/Legality/Checks.cs index 0b595ceac..aebc381c7 100644 --- a/PKHeX/Legality/Checks.cs +++ b/PKHeX/Legality/Checks.cs @@ -714,7 +714,7 @@ namespace PKHeX return; } } - if (Legal.Ban_NoHidden7.Contains(pkm.Species)) + if (Legal.Ban_NoHidden7.Contains(pkm.Species) && pkm.AbilityNumber == 4) { AddLine(Severity.Invalid, "Hidden Ability not available.", CheckIdentifier.Ability); return; @@ -1559,7 +1559,7 @@ namespace PKHeX AddLine(Severity.Invalid, "Ability not obtainable prior to Bank Release.", CheckIdentifier.Special); } - if (Legal.Bank_NoHidden7.Contains(pkm.Species)) + if (Legal.Bank_NoHidden7.Contains(pkm.Species) && pkm.AbilityNumber == 4) AddLine(Severity.Invalid, "Ability not obtainable prior to Bank Release.", CheckIdentifier.Special); }