changed CanBeConfused to actually check its argument (#2855)
This commit is contained in:
parent
47b013fc22
commit
d922ac43e9
@ -6524,8 +6524,8 @@ bool32 CanBeFrozen(u8 battlerId)
|
||||
|
||||
bool32 CanBeConfused(u8 battlerId)
|
||||
{
|
||||
if (GetBattlerAbility(gEffectBattler) == ABILITY_OWN_TEMPO
|
||||
|| gBattleMons[gEffectBattler].status2 & STATUS2_CONFUSION
|
||||
if (GetBattlerAbility(battlerId) == ABILITY_OWN_TEMPO
|
||||
|| gBattleMons[battlerId].status2 & STATUS2_CONFUSION
|
||||
|| IsBattlerTerrainAffected(battlerId, STATUS_FIELD_MISTY_TERRAIN))
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user