mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-16 00:22:10 +01:00
changed CanBeConfused to actually check its argument (#2855)
This commit is contained in:
parent
9ec31c61bf
commit
03f6fe635f
@ -6546,8 +6546,8 @@ bool32 CanBeFrozen(u8 battlerId)
|
|||||||
|
|
||||||
bool32 CanBeConfused(u8 battlerId)
|
bool32 CanBeConfused(u8 battlerId)
|
||||||
{
|
{
|
||||||
if (GetBattlerAbility(gEffectBattler) == ABILITY_OWN_TEMPO
|
if (GetBattlerAbility(battlerId) == ABILITY_OWN_TEMPO
|
||||||
|| gBattleMons[gEffectBattler].status2 & STATUS2_CONFUSION
|
|| gBattleMons[battlerId].status2 & STATUS2_CONFUSION
|
||||||
|| IsBattlerTerrainAffected(battlerId, STATUS_FIELD_MISTY_TERRAIN))
|
|| IsBattlerTerrainAffected(battlerId, STATUS_FIELD_MISTY_TERRAIN))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user