summaryrefslogtreecommitdiff
path: root/engine/predefs17_2.asm
blob: c0df7d0add6540dbbcec375cfb838c5b4a36a09f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; updates the types of a party mon (pointed to in hl) to the ones of the mon specified in wd11e
SetPartyMonTypes: ; 5db5e (17:5b5e)
	call GetPredefRegisters
	ld bc, wPartyMon1Type - wPartyMon1 ; $5
	add hl, bc
	ld a, [wd11e]
	ld [wd0b5], a
	push hl
	call GetMonHeader
	pop hl
	ld a, [wMonHType1]
	ld [hli], a
	ld a, [wMonHType2]
	ld [hl], a
	ret