mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Encounters now occur when changing direction
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user