Why does this cause the game to crash on F12?
How to reproduce
1: Insert script below materials
2: Start battle test
3: Press F12
class Game_Battler alias 😮ld_add_new_state :add_new_state def add_new_state(state_id) old_add_new_state(state_id) SceneManager.scene.wait_for_animation if SceneManager.scene_is?(Scene_Battle) endendThe idea is that whenever a new state is added, some animation is played, and so I want the battle scene to wait while the animation is played out.How can it be fixed?
How to reproduce
1: Insert script below materials
2: Start battle test
3: Press F12
class Game_Battler alias 😮ld_add_new_state :add_new_state def add_new_state(state_id) old_add_new_state(state_id) SceneManager.scene.wait_for_animation if SceneManager.scene_is?(Scene_Battle) endendThe idea is that whenever a new state is added, some animation is played, and so I want the battle scene to wait while the animation is played out.How can it be fixed?