I wasn't sure if it should go here or in plug in support.<Custom Action Start Effect>
// Get the current action.
var action = user.currentAction();
// Check if the action is magical and deals HP damage.
if action.isHpEffect() {
// Start the animation.
user.startAnimation(37);
}
</Custom Action Start Effect>
<Custom Confirm Effect>
// Check if the action is magical and deals HP damage.
if (this.isHpEffect() && value > 0) {
// Increase the damage by a multiplier.
value *= 2.0;
// Round up the damage.
value = Math.ceil(value);
// Remove the state.
user.removeState(stateId);
}
</Custom Confirm Effect>