From 44a124acb7b7bbafb89a25658b0a72b5ce819fce Mon Sep 17 00:00:00 2001 From: Evan Date: Fri, 15 Jan 2021 09:23:23 -0700 Subject: [PATCH] fix CanBeParayzed --- src/battle_ai_util.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/battle_ai_util.c b/src/battle_ai_util.c index afc02dfaa..a55f65a54 100644 --- a/src/battle_ai_util.c +++ b/src/battle_ai_util.c @@ -2599,12 +2599,12 @@ bool32 AI_CanPoison(u8 battlerAtk, u8 battlerDef, u16 defAbility, u16 move, u16 return TRUE; } -static bool32 CanBeParayzed(battlerDef, defAbility) +static bool32 CanBeParayzed(u8 battler, u16 ability) { - if (defAbility == ABILITY_LIMBER - || IS_BATTLER_OF_TYPE(battlerDef, TYPE_ELECTRIC) - || gBattleMons[battlerDef].status1 & STATUS1_ANY - || IsAbilityStatusProtected(battlerDef)) + if (ability == ABILITY_LIMBER + || IS_BATTLER_OF_TYPE(battler, TYPE_ELECTRIC) + || gBattleMons[battler].status1 & STATUS1_ANY + || IsAbilityStatusProtected(battler)) return FALSE; return TRUE; }