For some context I have a mechanic which applies a "doom" state to an actor which ticks down in real time and kills the actor when it hits zero.
I want to be able to end the actors turn if this happens while a player is selecting an action.
Its important to note that this code is not being called as part of the event loop, its running as part of a sprite update for the timer display.
Here are some of the things that I've tried, all of which softlock the game:
`SceneManager._scene.onSelectAction()`
`SceneManager._scene.selectNextCommand()`
`BattleManager.selectNextCommand()`
With a skill at id 8 which does nothing and targets user (also tried with it setting tp so it wasnt completely empty)
```
let actor = BattleManager.actor();
actor.forceAction(8, 0);
BattleManager.forceAction(actor);
$gameTroop._interpreter.setWaitMode('action');
BattleManager._phase = 'action';
```
With YEP_BattleEngineCore:
```
let actor = BattleManager.actor();
BattleManager._phase = 'action';
BattleManager.queueForceAction(actor, 8, actor);
BattleManager._phase = 'action';
```
Everything I've tried results in the game hanging in the action phase and not starting the enemies turn. If anyone has encountered this same problem and has an implementation I would love to hear it.
I want to be able to end the actors turn if this happens while a player is selecting an action.
Its important to note that this code is not being called as part of the event loop, its running as part of a sprite update for the timer display.
Here are some of the things that I've tried, all of which softlock the game:
`SceneManager._scene.onSelectAction()`
`SceneManager._scene.selectNextCommand()`
`BattleManager.selectNextCommand()`
With a skill at id 8 which does nothing and targets user (also tried with it setting tp so it wasnt completely empty)
```
let actor = BattleManager.actor();
actor.forceAction(8, 0);
BattleManager.forceAction(actor);
$gameTroop._interpreter.setWaitMode('action');
BattleManager._phase = 'action';
```
With YEP_BattleEngineCore:
```
let actor = BattleManager.actor();
BattleManager._phase = 'action';
BattleManager.queueForceAction(actor, 8, actor);
BattleManager._phase = 'action';
```
Everything I've tried results in the game hanging in the action phase and not starting the enemies turn. If anyone has encountered this same problem and has an implementation I would love to hear it.