pokecrystal-board/engine/pokemon/knows_move.asm

25 lines
304 B
NASM
Raw Normal View History

2018-06-24 07:09:41 -07:00
KnowsMove:
ld a, MON_MOVES
call GetPartyParamLocation
ld a, [wPutativeTMHMMove]
ld b, a
ld c, NUM_MOVES
.loop
ld a, [hli]
cp b
jr z, .knows_move
dec c
jr nz, .loop
and a
ret
.knows_move
ld hl, .KnowsMoveText
call PrintText1bpp
scf
ret
.KnowsMoveText:
text_far _KnowsMoveText
text_end