summaryrefslogtreecommitdiff
path: root/battle/ai/items.asm
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@gmail.com>2015-11-06 09:04:27 -0500
committerPikalaxALT <PikalaxALT@gmail.com>2015-11-06 09:04:27 -0500
commitf0830f084f74a9187dd71b64ad77db400d541f2d (patch)
tree4fa732f7c81a40c01411ae4e1a991b02caf0fe0a /battle/ai/items.asm
parent5eed48f05d3634146deb2442cd8f62bbad0ae352 (diff)
BATTLEACTION constants
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