2014-05-26 21:04:56 +00:00
|
|
|
; updates the types of a party mon (pointed to in hl) to the ones of the mon specified in wd11e
|
2016-06-12 00:24:04 +00:00
|
|
|
SetPartyMonTypes:
|
2014-05-23 22:11:09 +00:00
|
|
|
call GetPredefRegisters
|
2014-06-14 11:12:40 +00:00
|
|
|
ld bc, wPartyMon1Type - wPartyMon1 ; $5
|
2014-05-22 22:13:20 +00:00
|
|
|
add hl, bc
|
2014-05-26 21:04:56 +00:00
|
|
|
ld a, [wd11e]
|
|
|
|
ld [wd0b5], a
|
2014-05-22 22:13:20 +00:00
|
|
|
push hl
|
|
|
|
call GetMonHeader
|
|
|
|
pop hl
|
2015-08-31 02:38:41 +00:00
|
|
|
ld a, [wMonHType1]
|
2014-05-22 22:13:20 +00:00
|
|
|
ld [hli], a
|
2015-08-31 02:38:41 +00:00
|
|
|
ld a, [wMonHType2]
|
2014-05-22 22:13:20 +00:00
|
|
|
ld [hl], a
|
|
|
|
ret
|