From b1fac83c8e2b8e6ca90535e5329a9626a8f4b526 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 28 Jan 2017 10:06:32 -0800 Subject: [PATCH] Fix 5->6 therian hidden ability migration Closes #765 --- PKHeX/PKM/PK5.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PKHeX/PKM/PK5.cs b/PKHeX/PKM/PK5.cs index 996223a83..f1f75c1d8 100644 --- a/PKHeX/PKM/PK5.cs +++ b/PKHeX/PKM/PK5.cs @@ -338,6 +338,8 @@ namespace PKHeX.Core int[] abilities = PersonalInfo.Abilities; int abilval = Array.IndexOf(abilities, Ability); + if (abilval >= 0 && abilities[abilval] == abilities[2] && HiddenAbility) + abilval = 2; // hidden ability shared with a regular ability if (abilval >= 0) pk6.AbilityNumber = 1 << abilval; else // Fallback (shouldn't happen)