summaryrefslogtreecommitdiff
path: root/battle/ai/items.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2015-10-25 20:48:44 -0400
committeryenatch <yenatch@gmail.com>2015-10-25 20:48:44 -0400
commit0d17d4a75866d053f5e0b48c66deb2508071d98b (patch)
tree75bb638d39ab6b4d0bcd3167c22d275eb52ffdbd /battle/ai/items.asm
parent6fcba7a28a0d3d7826603b54b187dc5fca853669 (diff)
parent79ceca591b022673cb7fb2cc59e5175716743eb5 (diff)
Merge pull request #322 from PikalaxALT/master
Split out and comment phone and animation code.
Diffstat (limited to 'battle/ai/items.asm')
-rw-r--r--battle/ai/items.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/battle/ai/items.asm b/battle/ai/items.asm
index 7d847b9da..95997a67e 100644
--- a/battle/ai/items.asm
+++ b/battle/ai/items.asm
@@ -1,11 +1,11 @@
AI_SwitchOrTryItem: ; 38000
and a
- ld a, [IsInBattle]
+ ld a, [wBattleMode]
dec a
ret z
- ld a, [InLinkBattle]
+ ld a, [wLinkMode]
and a
ret nz
@@ -731,7 +731,7 @@ AI_Switch: ; 3846c
callba Function3d57a
xor a
ld [wd264], a
- ld a, [InLinkBattle]
+ ld a, [wLinkMode]
and a
ret nz
scf