summaryrefslogtreecommitdiff
path: root/src/engine/home.asm
diff options
context:
space:
mode:
authorxCrystal <rgr.crystal@gmail.com>2016-01-17 12:14:56 +0100
committerxCrystal <rgr.crystal@gmail.com>2016-01-17 12:14:56 +0100
commit4dc29d4884eeb2e4bc7be34588f4408db9f8008c (patch)
tree12cf0ab489fa63f5fea90576da803f3359f50e63 /src/engine/home.asm
parent95c6b2390120a95c77e4bf582452ec77f426976a (diff)
Generalize to "effect commands", even for trainer cards, to avoid confusion
Diffstat (limited to 'src/engine/home.asm')
-rwxr-xr-xsrc/engine/home.asm12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/engine/home.asm b/src/engine/home.asm
index ea26bc8..6897d57 100755
--- a/src/engine/home.asm
+++ b/src/engine/home.asm
@@ -3805,13 +3805,13 @@ Func_2fcb: ; 2fcb (0:2fcb)
ret
; 0x2fd9
-TryExecuteCommandFunction: ; 2fd9 (0:2fd9)
+TryExecuteEffectCommandFunction: ; 2fd9 (0:2fd9)
; Checks if the command ID at a is one of the commands of the move or card effect currently in use,
; and executes its associated function if so.
-; input: a = move effect / card function command ID
+; input: a = move or trainer card effect command ID
push af
-; grab pointer to command list from wCurrentMoveEffectOrCardFunction
- ld hl, wCurrentMoveEffectOrCardFunction
+; grab pointer to command list from wCurrentMoveOrCardEffect
+ ld hl, wCurrentMoveOrCardEffect
ld a, [hli]
ld h, [hl]
ld l, a
@@ -3843,7 +3843,7 @@ TryExecuteCommandFunction: ; 2fd9 (0:2fd9)
CheckMatchingCommand: ; 2ffe (0:2ffe)
; input:
; a = command ID to check
-; hl = pointer to current move effect or trainer card command list
+; hl = pointer to current move effect or trainer card effect command list
; return nc if command ID matching a is found, c otherwise
ld c, a
ld a, l
@@ -3856,7 +3856,7 @@ CheckMatchingCommand: ; 2ffe (0:2ffe)
.notNullPointer
ld a, [hBankROM]
push af
- ld a, BANK(MoveEffectAndTrainerCardCommands)
+ ld a, BANK(EffectCommands)
call BankswitchHome
; store the bank number of command functions ($b) in wce22
ld a, $b