summaryrefslogtreecommitdiff
path: root/src/battle_ai_switch_items.c
diff options
context:
space:
mode:
authorDeokishisu <edsaletto@gmail.com>2018-10-14 14:19:23 -0400
committerDeokishisu <edsaletto@gmail.com>2018-10-14 14:19:23 -0400
commitc89b14f5ef16609779f9bd85cf4e4efa090caad7 (patch)
tree850ae8e4df1d421e39f54ab8d0a0da9d9ffb7e18 /src/battle_ai_switch_items.c
parente129f4864fa342fdca46399f216ee0c0c46c26b4 (diff)
parent43316ffae83d49be09969e291779cc9e448b83a1 (diff)
Merge branch 'master' of https://github.com/pret/pokeemerald into LabelOWsProperly
Diffstat (limited to 'src/battle_ai_switch_items.c')
-rw-r--r--src/battle_ai_switch_items.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/battle_ai_switch_items.c b/src/battle_ai_switch_items.c
index a105e7edf..40fffd6e5 100644
--- a/src/battle_ai_switch_items.c
+++ b/src/battle_ai_switch_items.c
@@ -17,7 +17,7 @@ static bool8 ShouldUseItem(void);
static bool8 ShouldSwitchIfPerishSong(void)
{
if (gStatuses3[gActiveBattler] & STATUS3_PERISH_SONG
- && gDisableStructs[gActiveBattler].perishSongTimer1 == 0)
+ && gDisableStructs[gActiveBattler].perishSongTimer == 0)
{
*(gBattleStruct->AI_monToSwitchIntoId + gActiveBattler) = PARTY_SIZE;
BtlController_EmitTwoReturnValues(1, B_ACTION_SWITCH, 0);