mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-17 12:07:38 +01:00
Fix typo
CanBeParayzed to CanBeParalyzed
This commit is contained in:
parent
d64dc2bbe8
commit
bbe2eccf62
@ -2653,7 +2653,7 @@ bool32 AI_CanPoison(u8 battlerAtk, u8 battlerDef, u16 defAbility, u16 move, u16
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool32 CanBeParayzed(u8 battler, u16 ability)
|
static bool32 CanBeParalyzed(u8 battler, u16 ability)
|
||||||
{
|
{
|
||||||
if (ability == ABILITY_LIMBER
|
if (ability == ABILITY_LIMBER
|
||||||
|| IS_BATTLER_OF_TYPE(battler, TYPE_ELECTRIC)
|
|| IS_BATTLER_OF_TYPE(battler, TYPE_ELECTRIC)
|
||||||
@ -2665,7 +2665,7 @@ static bool32 CanBeParayzed(u8 battler, u16 ability)
|
|||||||
|
|
||||||
bool32 AI_CanParalyze(u8 battlerAtk, u8 battlerDef, u16 defAbility, u16 move, u16 partnerMove)
|
bool32 AI_CanParalyze(u8 battlerAtk, u8 battlerDef, u16 defAbility, u16 move, u16 partnerMove)
|
||||||
{
|
{
|
||||||
if (!CanBeParayzed(battlerDef, defAbility)
|
if (!CanBeParalyzed(battlerDef, defAbility)
|
||||||
|| AI_GetMoveEffectiveness(move, battlerAtk, battlerDef) == AI_EFFECTIVENESS_x0
|
|| AI_GetMoveEffectiveness(move, battlerAtk, battlerDef) == AI_EFFECTIVENESS_x0
|
||||||
|| gSideStatuses[GetBattlerSide(battlerDef)] & SIDE_STATUS_SAFEGUARD
|
|| gSideStatuses[GetBattlerSide(battlerDef)] & SIDE_STATUS_SAFEGUARD
|
||||||
|| DoesSubstituteBlockMove(battlerAtk, battlerDef, move)
|
|| DoesSubstituteBlockMove(battlerAtk, battlerDef, move)
|
||||||
|
Loading…
Reference in New Issue
Block a user