Skip to content

Commit

Permalink
trainer DV fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JustRegularLuna committed Oct 4, 2022
1 parent 167f53f commit f5ea7bb
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions engine/add_mon.asm
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,18 @@ _AddPartyMon:
inc de
pop hl
push hl
ld a, [wMonDataLocation]
and $f
push hl
push de
push bc
push af
callba GetTrainerMonDVs
pop af
pop bc
pop de
ld hl, wTempDVs
ld a, [hli]
ld b, [hl]
pop hl
ld a, [wMonDataLocation]
and $f
ld a, [wTempDVs + 1]
ld b, a
ld a, [wTempDVs]
jr nz, .writeFreshMonData

; If the mon is being added to the player's party, update the pokedex.
Expand Down

0 comments on commit f5ea7bb

Please sign in to comment.