mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Identify why five of six enemy mon base stats are copied (#866)
Co-authored-by: Rangi <35663410+Rangi42@users.noreply.github.com>
This commit is contained in:
parent
288532131b
commit
67207fab94
@ -3980,9 +3980,11 @@ InitEnemyMon:
|
||||
inc de
|
||||
ld a, [hl]
|
||||
ld [de], a
|
||||
; The enemy mon's base Sp. Def isn't needed since its base
|
||||
; Sp. Atk is also used to calculate Sp. Def stat experience.
|
||||
ld hl, wBaseStats
|
||||
ld de, wEnemyMonBaseStats
|
||||
ld b, 5
|
||||
ld b, NUM_STATS - 1
|
||||
.loop
|
||||
ld a, [hli]
|
||||
ld [de], a
|
||||
@ -6364,10 +6366,11 @@ LoadEnemyMon:
|
||||
call CopyBytes
|
||||
|
||||
.Finish:
|
||||
; Only the first five base stats are copied..
|
||||
; Copy the first five base stats (the enemy mon's base Sp. Atk
|
||||
; is also used to calculate Sp. Def stat experience)
|
||||
ld hl, wBaseStats
|
||||
ld de, wEnemyMonBaseStats
|
||||
ld b, wBaseSpecialDefense - wBaseStats
|
||||
ld b, NUM_STATS - 1
|
||||
.loop
|
||||
ld a, [hli]
|
||||
ld [de], a
|
||||
|
Loading…
Reference in New Issue
Block a user