mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-22 19:30:17 +01:00
fix CanBeParayzed
This commit is contained in:
parent
062d2ee50e
commit
44a124acb7
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user