summaryrefslogtreecommitdiff
path: root/src/engine/effect_functions.asm
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/effect_functions.asm')
-rw-r--r--src/engine/effect_functions.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/effect_functions.asm b/src/engine/effect_functions.asm
index df4bb99..a749bd8 100644
--- a/src/engine/effect_functions.asm
+++ b/src/engine/effect_functions.asm
@@ -33,7 +33,7 @@ SleepEffect: ; 2c030 (b:4030)
jr applyEffect
applyEffect
- ld a, [$ff97]
+ ldh a, [hWhoseTurn]
ld hl, $cc05
cp [hl]
jr nz, .canInduceStatus
@@ -67,7 +67,7 @@ applyEffect
ld hl, $ccce
add hl, de
call SwapTurn
- ld a, [$ff97]
+ ldh a, [hWhoseTurn]
ld [hli], a
call SwapTurn
ld [hl], b