summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElectroDeoxys <ElectroDeoxys@gmail.com>2019-08-03 00:10:09 +0100
committerElectroDeoxys <ElectroDeoxys@gmail.com>2019-08-07 23:24:59 +0100
commite14fe82a133a03059d3c0f8fb90d9d76b7e52580 (patch)
tree1153b444396b533f5f9a551b8189c262a5eb2821 /src
parentf28d945360edf5903c92118c2db6bcef83e0fef1 (diff)
Correct SubstractHPFromCard label
Diffstat (limited to 'src')
-rw-r--r--src/engine/bank05.asm6
-rw-r--r--src/engine/home.asm4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/engine/bank05.asm b/src/engine/bank05.asm
index 33f857f..327b523 100644
--- a/src/engine/bank05.asm
+++ b/src/engine/bank05.asm
@@ -1988,7 +1988,7 @@ Func_15f4c: ; 15f4c (5:5f4c)
.check_damage
ld a, [wCurCardPlayAreaLocation]
ld e, a
- call SubstractHPFromCard
+ call GetCardDamage
or a
jr z, .asm_160b7
srl a
@@ -2160,7 +2160,7 @@ Func_16120: ; 16120 (5:6120)
dec b
ld e, b
push bc
- call SubstractHPFromCard
+ call GetCardDamage
pop bc
add c
ld c, a
@@ -2188,7 +2188,7 @@ Func_16120: ; 16120 (5:6120)
; a Muk in any duelist's Play Area
.is_active
ld e, 0
- call SubstractHPFromCard
+ call GetCardDamage
cp 50
jr c, .asm_161ab
ld e, PLAY_AREA_ARENA
diff --git a/src/engine/home.asm b/src/engine/home.asm
index d8a9a01..15778ca 100644
--- a/src/engine/home.asm
+++ b/src/engine/home.asm
@@ -5259,9 +5259,9 @@ MoveCardToDiscardPileIfInArena: ; 1c13 (0:1c13)
ret
; 0x1c35
-; substract [hl] HP from the turn holder's card at CARD_LOCATION_PLAY_AREA + e
+; calculate damage of card at CARD_LOCATION_PLAY_AREA + e
; return the result in a
-SubstractHPFromCard: ; 1c35 (0:1c35)
+GetCardDamage: ; 1c35 (0:1c35)
push hl
push de
ld a, DUELVARS_ARENA_CARD