wild DV buff

It doesn't appear to work properly for ATK/DEF, but SPC/SPE worked with a couple Bellsprout so it's good enough for now.
This commit is contained in:
May Evans 2022-09-04 11:56:47 +01:00
parent b857f71b5a
commit 3180772ed1
2 changed files with 3 additions and 2 deletions

View file

@ -68,7 +68,7 @@ DEF MAX_STAT_VALUE EQU 999
; trainer dvs, these should be set to 15.
DEF ATKDEFDV_TRAINER EQU $FF
DEF SPDSPCDV_TRAINER EQU $FF
DEF SPDSPCDV_TRAINER EQU $FF
; wPlayerBattleStatus1 or wEnemyBattleStatus1 bit flags
const_def

View file

@ -6151,7 +6151,8 @@ LoadEnemyMonData:
jr z, .storeDVs
; random DVs for wild mon
call BattleRandom
ld b, a
ld a, ATKDEFDV_TRAINER
ld b, SPDSPCDV_TRAINER
call BattleRandom
.storeDVs
ld hl, wEnemyMonDVs