summaryrefslogtreecommitdiff
path: root/engine/items/tms.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/items/tms.asm')
-rwxr-xr-xengine/items/tms.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/items/tms.asm b/engine/items/tms.asm
index 511aab5b..da1b5e72 100755
--- a/engine/items/tms.asm
+++ b/engine/items/tms.asm
@@ -1,9 +1,9 @@
; tests if mon [wcf91] can learn move [wMoveNum]
-CanLearnTM: ; 1373e (4:773e)
+CanLearnTM:
ld a, [wcf91]
ld [wd0b5], a
call GetMonHeader
- ld hl, W_MONHLEARNSET
+ ld hl, wMonHLearnset
push hl
ld a, [wMoveNum]
ld b, a
@@ -17,12 +17,12 @@ CanLearnTM: ; 1373e (4:773e)
jr .findTMloop
.TMfoundLoop
pop hl
- ld b, $2 ; read corresponding bit from TM compatibility array
+ ld b, FLAG_TEST
predef_jump FlagActionPredef
; converts TM/HM number in wd11e into move number
; HMs start at 51
-TMToMove: ; 13763 (4:7763)
+TMToMove:
ld a, [wd11e]
dec a
ld hl, TechnicalMachines