Using standard yanfly plugins and yanfly ATB
I have an actor use a skill, then a forced skill common event is run a few times.
The issue is that the states on the actor go down in correlation to the number of actions taken when I only would want them to go down by one turn count.
I looked into this and tried to fix it but to no avail.
The following changes in YEP_BuffStatesCore checks if a switch is active.
If I set the switch to true, the states are never updated.
If I set the state back to false at the end of the common event or in the action sequence, the states are triggered multiple times like it was queued up. If I force the initial skill instead, no states are updated.
I have an actor use a skill, then a forced skill common event is run a few times.
The issue is that the states on the actor go down in correlation to the number of actions taken when I only would want them to go down by one turn count.
I looked into this and tried to fix it but to no avail.
The following changes in YEP_BuffStatesCore checks if a switch is active.
If I set the switch to true, the states are never updated.
If I set the state back to false at the end of the common event or in the action sequence, the states are triggered multiple times like it was queued up. If I force the initial skill instead, no states are updated.
Code:
Yanfly.BSC.Game_BattlerBase_updateStateTicks =
Game_BattlerBase.prototype.updateStateTicks;
Game_BattlerBase.prototype.updateStateTicks = function() {
if(!$gameSwitches.value(55)){
$gameTemp._customLeaveEffectEval = true;
Yanfly.BSC.Game_BattlerBase_updateStateTicks.call(this);
$gameTemp._customLeaveEffectEval = undefined;
}
};