mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-02 09:19:59 +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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool32 CanBeParayzed(battlerDef, defAbility)
|
static bool32 CanBeParayzed(u8 battler, u16 ability)
|
||||||
{
|
{
|
||||||
if (defAbility == ABILITY_LIMBER
|
if (ability == ABILITY_LIMBER
|
||||||
|| IS_BATTLER_OF_TYPE(battlerDef, TYPE_ELECTRIC)
|
|| IS_BATTLER_OF_TYPE(battler, TYPE_ELECTRIC)
|
||||||
|| gBattleMons[battlerDef].status1 & STATUS1_ANY
|
|| gBattleMons[battler].status1 & STATUS1_ANY
|
||||||
|| IsAbilityStatusProtected(battlerDef))
|
|| IsAbilityStatusProtected(battler))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user