diff options
author | Matthew Glazar <strager.nds@gmail.com> | 2017-04-02 13:19:04 -0700 |
---|---|---|
committer | Matthew Glazar <strager.nds@gmail.com> | 2017-04-02 13:19:04 -0700 |
commit | 3541904411d4051fd7e0635d5f995cbe38dd0867 (patch) | |
tree | f682e37d8f4c4764efd93a5a0c77a8cd22176a73 | |
parent | a30bbae4b5b6433941b7011b82e4aee1ae6916e1 (diff) |
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.
-rw-r--r-- | home.asm | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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:: |