summaryrefslogtreecommitdiff
path: root/engine/items/tmhm.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/items/tmhm.asm')
-rwxr-xr-xengine/items/tmhm.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/items/tmhm.asm b/engine/items/tmhm.asm
index 01a48ebb..0fcc5710 100755
--- a/engine/items/tmhm.asm
+++ b/engine/items/tmhm.asm
@@ -1,12 +1,12 @@
-; checks if the mon in wWhichPokemon already knows the move in wd0e0
+; checks if the mon in [wWhichPokemon] already knows the move in [wMoveNum]
CheckIfMoveIsKnown: ; 2fe18 (b:7e18)
ld a, [wWhichPokemon]
ld hl, wPartyMon1Moves
- ld bc, $2c
+ ld bc, wPartyMon2 - wPartyMon1
call AddNTimes
- ld a, [wd0e0]
+ ld a, [wMoveNum]
ld b, a
- ld c, $4 ; nubmer of moves
+ ld c, NUM_MOVES
.loop
ld a, [hli]
cp b