shithub: pokecrystal

ref: ac48d654987ef1df3a7ca6e5a40d8e6eab477d7f
dir: /engine/battle/read_trainer_dvs.asm/

View raw version
GetTrainerDVs:
; Return the DVs of wOtherTrainerClass in bc

	push hl
	ld a, [wOtherTrainerClass]
	dec a
	ld c, a
	ld b, 0

	ld hl, TrainerClassDVs
	add hl, bc
	add hl, bc

	ld a, [hli]
	ld b, a
	ld c, [hl]

	pop hl
	ret

INCLUDE "data/trainers/dvs.asm"