mirror of
https://github.com/pret/pokered.git
synced 2024-10-22 22:55:31 +00:00
Use correct variable in EngageMapTrainer
EngageMapTrainer should write to wEngagedTrainerClass and wEngagedTrainerSet, not wEngagedTrainerClass and wEnemyMonAttackMod. wEnemyMonAttackMod doesn't make any sense in this context. Use the correct variable. These two variables happen to have the same address, so there is no functional difference between using wEnemyMonAttackMod versus using wEngagedTrainerSet.
This commit is contained in:
parent
a30bbae4b5
commit
3541904411
1 changed files with 1 additions and 1 deletions
2
home.asm
2
home.asm
|
@ -2528,7 +2528,7 @@ EngageMapTrainer::
|
|||
ld a, [hli] ; load trainer class
|
||||
ld [wEngagedTrainerClass], a
|
||||
ld a, [hl] ; load trainer mon set
|
||||
ld [wEnemyMonAttackMod], a
|
||||
ld [wEngagedTrainerSet], a
|
||||
jp PlayTrainerMusic
|
||||
|
||||
PrintEndBattleText::
|
||||
|
|
Loading…
Reference in a new issue