From 3541904411d4051fd7e0635d5f995cbe38dd0867 Mon Sep 17 00:00:00 2001 From: Matthew Glazar Date: Sun, 2 Apr 2017 13:19:04 -0700 Subject: 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. --- home.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home.asm b/home.asm index bfd73b31..94125da2 100644 --- a/home.asm +++ b/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:: -- cgit v1.2.3