summaryrefslogtreecommitdiff
path: root/engine/battle/move_effects/rollout.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2018-08-25 14:28:22 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2018-08-25 14:28:22 -0400
commiteb1e3636bb71509546c274bf2a5910d8e71a9600 (patch)
tree24d7742604073b2afb86c1225258f8217d1653e7 /engine/battle/move_effects/rollout.asm
parent376c64468bab8d162da43fc6e1b6f0942943cf43 (diff)
Use labels instead of constants for HRAM
Use explicit ldh instruction to access HRAM locations, don't rely on optimizing ld
Diffstat (limited to 'engine/battle/move_effects/rollout.asm')
-rw-r--r--engine/battle/move_effects/rollout.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/battle/move_effects/rollout.asm b/engine/battle/move_effects/rollout.asm
index de4bfcaa6..e2f810e6a 100644
--- a/engine/battle/move_effects/rollout.asm
+++ b/engine/battle/move_effects/rollout.asm
@@ -4,7 +4,7 @@ BattleCommand_CheckCurl:
; checkcurl
ld de, wPlayerRolloutCount
- ld a, [hBattleTurn]
+ ldh a, [hBattleTurn]
and a
jr z, .ok
ld de, wEnemyRolloutCount
@@ -31,7 +31,7 @@ BattleCommand_RolloutPower:
ret nz
ld hl, wPlayerRolloutCount
- ld a, [hBattleTurn]
+ ldh a, [hBattleTurn]
and a
jr z, .got_rollout_count
ld hl, wEnemyRolloutCount