shithub: pokecrystal

ref: 7676f7d22edae31996e0651e608b2b60dfa5da0b
dir: /engine/battle/read_trainer_dvs.asm/

View raw version
GetTrainerDVs: ; 270c4
; 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
; 270d6