Encounters now occur when changing direction

This commit is contained in:
Kaividian
2020-09-28 00:01:00 +10:00
committed by GitHub
parent 0bbdc54ff0
commit edf35ac8a8
2 changed files with 19 additions and 0 deletions

View File

@@ -128,6 +128,14 @@ class Game_Player < Game_Character
end
end
def turnGeneric(dir)
old_direction = @direction
super
if @direction != oldDirection && !@move_route_forcing && !pbMapInterpreterRunning?
Events.onChangeDirection.trigger(self, self)
end
end
def pbTriggeredTrainerEvents(triggers,checkIfRunning=true)
result = []
# If event is running