mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixed triggering a battle upon turning causing the player to take a step after it
This commit is contained in:
@@ -265,6 +265,7 @@ class Game_Character
|
|||||||
@pattern = 0 if @walk_anime or @step_anime
|
@pattern = 0 if @walk_anime or @step_anime
|
||||||
@anime_count = 0
|
@anime_count = 0
|
||||||
@prelock_direction = 0
|
@prelock_direction = 0
|
||||||
|
@moved_last_frame = false
|
||||||
end
|
end
|
||||||
|
|
||||||
def force_move_route(move_route)
|
def force_move_route(move_route)
|
||||||
|
|||||||
@@ -563,6 +563,7 @@ def pbAfterBattle(decision,canLose)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
Events.onEndBattle.trigger(nil,decision,canLose)
|
Events.onEndBattle.trigger(nil,decision,canLose)
|
||||||
|
$game_player.straighten
|
||||||
end
|
end
|
||||||
|
|
||||||
Events.onEndBattle += proc { |_sender,e|
|
Events.onEndBattle += proc { |_sender,e|
|
||||||
|
|||||||
Reference in New Issue
Block a user