fix CanBeParayzed

This commit is contained in:
Evan 2021-01-15 09:23:23 -07:00
parent 062d2ee50e
commit 44a124acb7

View File

@ -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;
}