aboutsummaryrefslogtreecommitdiffstats
path: root/engine/pokemon/set_types.asm
blob: d42c3cf307bba2686b65117f6f5c35123469f4d1 (plain) (blame)
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 [wPokedexNum]
SetPartyMonTypes:
	call GetPredefRegisters
	ld bc, MON_TYPE
	add hl, bc
	ld a, [wPokedexNum]
	ld [wCurSpecies], a
	push hl
	call GetMonHeader
	pop hl
	ld a, [wMonHType1]
	ld [hli], a
	ld a, [wMonHType2]
	ld [hl], a
	ret