ref: c4e3f2bbc23fe731deb177ed5743fdc6ac6572e0
parent: f7d26fbe9c878c67271db67257073f6ccc34daf3
author: vulcandth <vulcandth@gmail.com>
date: Tue Nov 22 15:03:24 EST 2022
`TrainerWalkToPlayer` should reference `wSeenTrainerDistance` (#1020)
--- a/engine/overworld/player_object.asm
+++ b/engine/overworld/player_object.asm
@@ -519,7 +519,7 @@
call InitMovementBuffer
ld a, movement_step_sleep
call AppendToMovementBuffer
- ld a, [wWalkingIntoNPC]
+ ld a, [wSeenTrainerDistance]
dec a
jr z, .TerminateStep
ldh a, [hLastTalked]