summaryrefslogtreecommitdiff
path: root/battle/ai/items.asm
diff options
context:
space:
mode:
Diffstat (limited to 'battle/ai/items.asm')
-rw-r--r--battle/ai/items.asm3
1 files changed, 3 insertions, 0 deletions
diff --git a/battle/ai/items.asm b/battle/ai/items.asm
index 7be68b9de..37c8ea4b7 100644
--- a/battle/ai/items.asm
+++ b/battle/ai/items.asm
@@ -707,6 +707,7 @@ AI_Switch: ; 3846c
xor a
ld [hBattleTurn], a
callab PursuitSwitch
+
push af
ld a, [CurOTMon]
ld hl, OTPartyMon1Status
@@ -718,9 +719,11 @@ AI_Switch: ; 3846c
ld bc, $0004
call CopyBytes
pop af
+
jr c, .skiptext
ld hl, TextJump_EnemyWithdrew
call PrintText
+
.skiptext
ld a, $1
ld [wd264], a