From 7be007c7814a18dfd4bbc62ca17caf159d83870a Mon Sep 17 00:00:00 2001 From: Santacrab2 Date: Tue, 30 Jul 2024 12:26:51 -0400 Subject: [PATCH] solves #251 fixes ability application --- PKHeX.Core.AutoMod/AutoMod/Legalization/ShowdownEdits.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.Core.AutoMod/AutoMod/Legalization/ShowdownEdits.cs b/PKHeX.Core.AutoMod/AutoMod/Legalization/ShowdownEdits.cs index 7de8dfef..00e2d421 100644 --- a/PKHeX.Core.AutoMod/AutoMod/Legalization/ShowdownEdits.cs +++ b/PKHeX.Core.AutoMod/AutoMod/Legalization/ShowdownEdits.cs @@ -69,7 +69,7 @@ public static void SetAbility(PKM pk, IBattleTemplate set, AbilityPermission pre { if (pk.Ability != set.Ability) pk.RefreshAbility(pk is PK5 { HiddenAbility: true } ? 2 : pk.AbilityNumber >> 1); - if (pk.Ability != set.Ability && pk.Context >= EntityContext.Gen8 && set.Ability != -1) + if (pk.Ability != set.Ability && pk.Context >= EntityContext.Gen6 && set.Ability != -1) pk.RefreshAbility(pk is PK5 { HiddenAbility: true } ? 2 : pk.PersonalInfo.GetIndexOfAbility(set.Ability)); if (preference <= 0) return;