2015-11-11 13:11:08 -08:00
|
|
|
CanLearnTMHMMove: ; 11639
|
|
|
|
ld a, [CurPartySpecies]
|
|
|
|
ld [CurSpecies], a
|
|
|
|
call GetBaseData
|
|
|
|
ld hl, BaseTMHM
|
|
|
|
push hl
|
|
|
|
|
2015-12-02 10:24:18 -08:00
|
|
|
ld a, [wPutativeTMHMMove]
|
2015-11-11 13:11:08 -08:00
|
|
|
ld b, a
|
|
|
|
ld c, 0
|
|
|
|
ld hl, TMHMMoves
|
|
|
|
.loop
|
|
|
|
ld a, [hli]
|
|
|
|
and a
|
|
|
|
jr z, .end
|
|
|
|
cp b
|
|
|
|
jr z, .asm_11659
|
|
|
|
inc c
|
|
|
|
jr .loop
|
|
|
|
|
|
|
|
.asm_11659
|
|
|
|
pop hl
|
|
|
|
ld b, CHECK_FLAG
|
|
|
|
push de
|
|
|
|
ld d, 0
|
|
|
|
predef FlagPredef
|
|
|
|
pop de
|
|
|
|
ret
|
|
|
|
|
|
|
|
.end
|
|
|
|
pop hl
|
|
|
|
ld c, 0
|
|
|
|
ret
|
|
|
|
; 1166a
|
|
|
|
|
|
|
|
GetTMHMMove: ; 1166a
|
|
|
|
ld a, [wd265]
|
|
|
|
dec a
|
|
|
|
ld hl, TMHMMoves
|
|
|
|
ld b, 0
|
|
|
|
ld c, a
|
|
|
|
add hl, bc
|
|
|
|
ld a, [hl]
|
|
|
|
ld [wd265], a
|
|
|
|
ret
|
|
|
|
; 1167a
|
|
|
|
|
2017-12-11 19:44:25 -08:00
|
|
|
|
2017-12-26 14:47:05 -08:00
|
|
|
INCLUDE "data/moves/tmhm_moves.asm"
|