aboutsummaryrefslogtreecommitdiffstats
path: root/engine/battle/move_effects
diff options
context:
space:
mode:
authorRangi <sylvie.oukaour+rangi42@gmail.com>2025-10-05 10:53:31 -0400
committerRangi <sylvie.oukaour+rangi42@gmail.com>2025-10-05 10:53:31 -0400
commite3af20b907fad59bcbee7d36ab4912d0cc5f2935 (patch)
treefc5ef02d8bbd581ddb6c8f914d2becbbeaee680b /engine/battle/move_effects
parentRevise some RAM buffer constants (diff)
downloadpokeyellow-e3af20b907fad59bcbee7d36ab4912d0cc5f2935.tar.gz
pokeyellow-e3af20b907fad59bcbee7d36ab4912d0cc5f2935.tar.xz
pokeyellow-e3af20b907fad59bcbee7d36ab4912d0cc5f2935.zip
Consistently use `ld [hli]`/`ld [hld]`, not `ldi`/`ldd`
Diffstat (limited to 'engine/battle/move_effects')
-rw-r--r--engine/battle/move_effects/substitute.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/battle/move_effects/substitute.asm b/engine/battle/move_effects/substitute.asm
index b1fd8ac2..e4311209 100644
--- a/engine/battle/move_effects/substitute.asm
+++ b/engine/battle/move_effects/substitute.asm
@@ -39,7 +39,7 @@ SubstituteEffect_:
jr c, .notEnoughHP ; underflow means user would be left with negative health
; bug: since it only branches on carry, it will possibly leave user with 0 HP
.userHasZeroOrMoreHP
- ldi [hl], a ; save resulting HP after subtraction into current HP
+ ld [hli], a ; save resulting HP after subtraction into current HP
ld [hl], d
ld h, b
ld l, c