Greetings,
Got a question for yall.
I am encountering a bug with the battle core and how action sequences interact with <JS Post-Damage>. Any skill that uses targeting within an action sequence (in the common event) will break all uses of $target in <JS Post-Damage> in other skills. To elaborate, if I have a skill that uses any form of targeting in an action seqeuence (using Mech: Action Effect), any skill I use with <JS Post-Damage> will not recognize proper targets for $target.
For example, the following code will not function in a skill if I previously used a skill that had a custom action sequence at any point in the battle: (to clarify, there is no crash, the targets will either be no one or it will always target the 1st actor in the battle to remove a state, regardless of the actor targeted by the skill)
<JS Post-Damage>
</JS Post-Damage>
However, the above code works perfectly fine if I do not use any skills that contain any action sequence that uses any form of targeting.
So my question is, has anyone encountered similar targeting bugs in the Battle Core and how it interacts with <JS Post-Damage> and know what to do about it?
Got a question for yall.
I am encountering a bug with the battle core and how action sequences interact with <JS Post-Damage>. Any skill that uses targeting within an action sequence (in the common event) will break all uses of $target in <JS Post-Damage> in other skills. To elaborate, if I have a skill that uses any form of targeting in an action seqeuence (using Mech: Action Effect), any skill I use with <JS Post-Damage> will not recognize proper targets for $target.
For example, the following code will not function in a skill if I previously used a skill that had a custom action sequence at any point in the battle: (to clarify, there is no crash, the targets will either be no one or it will always target the 1st actor in the battle to remove a state, regardless of the actor targeted by the skill)
<JS Post-Damage>
Code:
if ($target.isStateAffected(72)) {
$target.removeState(72)
$target.addState(73)};
</JS Post-Damage>
However, the above code works perfectly fine if I do not use any skills that contain any action sequence that uses any form of targeting.
So my question is, has anyone encountered similar targeting bugs in the Battle Core and how it interacts with <JS Post-Damage> and know what to do about it?