File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -54,17 +54,21 @@ export class CharFallEvent extends GameEvent {
54
54
55
55
if ( target_char ) {
56
56
++ this . data . game_event_manager . events_running_count ;
57
+ const prev_force_idle_action_in_event = target_char . force_idle_action_in_event ;
58
+ target_char . force_idle_action_in_event = false ;
57
59
const target_obj = Object . assign ( { } , this . options , {
58
60
on_fall_finish_callback : ( ) => {
59
61
if ( ! this . options . teleport ) {
60
62
-- this . data . game_event_manager . events_running_count ;
63
+ target_char . force_idle_action_in_event = prev_force_idle_action_in_event ;
61
64
this . finish_events . forEach ( event => event . fire ( this . origin_npc ) ) ;
62
65
}
63
66
} ,
64
67
} ) ;
65
68
if ( target_obj . teleport ) {
66
69
target_obj . teleport . on_before_teleport = ( ) => {
67
70
this . data . game_event_manager . events_running_count = 0 ;
71
+ target_char . force_idle_action_in_event = prev_force_idle_action_in_event ;
68
72
} ;
69
73
}
70
74
target_char . fall ( target_obj ) ;
You can’t perform that action at this time.
0 commit comments