summaryrefslogtreecommitdiff
path: root/src/engine/effect_functions.asm
diff options
context:
space:
mode:
authorxCrystal <rgr.crystal@gmail.com>2016-03-07 21:44:32 +0100
committerxCrystal <rgr.crystal@gmail.com>2016-03-07 22:16:50 +0100
commit390500b3f1cf30bf2369721392d6ab2ef6f5a73b (patch)
tree822823ac1b491da0218fc8467233dad4499d4d14 /src/engine/effect_functions.asm
parent8289a369312c524ff6dd9ef81e4be989335a9696 (diff)
disassemble GetAttachedEnergies and HandleEnergyBurn
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