shithub: pokecrystal

ref: 5fd3e591df48ca081726cde12d9991fa52a1c839
dir: /engine/pokemon/knows_move.asm/

View raw version
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, .Text_knows
	call PrintText
	scf
	ret

.Text_knows:
	; knows @ .
	text_far UnknownText_0x1c5ea8
	text_end