[Need help] Power Charge damage only apply to 1 enemy

So I'm recreating the skill Power Charge / Mind Charge from Persona franchise to my game. I have seen Tips & Trick to create that in Yanfly channel. The problem is: after applying the effect, the damage is only increased for 1 enemy.

For example, I have a skill called Swordplay which targets all enemies. After using Power Charge, I notice that only 1 enemy received the increased damage while the other enemies received damage are normal.

I have tried to search everywhere for a solution but haven't found 1 yet. Can someone help me?

Spoiler: Code from Yanfly
<Custom Action Start Effect>
// Get the current action.
var action = user.currentAction();
// Check if the action is physical, is a basic attack, and deals HP damage.
if (action.isPhysical() && action.isHpEffect()) {
// Play an animation to indicate the effect is taking off.
user.startAnimation(2);
}
</Custom Action Start Effect>

<Custom Confirm Effect>
// Check if the action is physical, is a basic attack, and deals HP damage.
if (this.isPhysical() && this.isHpEffect() && value > 0) {
// Increase the damage by a multiplier.
value *= 2.5;
// Round up the damage.
value = Math.ceil(value);
// Remove the state.
user.removeState(stateId);
}
</Custom Confirm Effect>
I've also tried to remove the value and use Trait Attack * 250%, but the result is still the same.
It only applies once because you are removing the State as part of the Confirm effect (which runs immediately after the Hit is determined). Instead of removing the state, set a variable equal to true (for example: var swordplay = true) there, and create a new tag <Custom Action End Effect>. Inside that tag, check whether swordplay is true; if it is, remove the state and set swordplay to false.
Thanks, after researching, here is the solution I came up with
Spoiler: Code
<Custom Action Start Effect>
// Get the current action.
var action = user.currentAction();
// Check if the action is physical, is a basic attack, and deals HP damage.
if (action.isPhysical() && action.isHpEffect()) {
// Play an animation to indicate the effect is taking off.
user.startAnimation(2);
v[100 + user.actorId()] = 1;
}
</Custom Action Start Effect>

<Custom Confirm Effect>
// Check if the action is physical, is a basic attack, and deals HP damage.
if (this.isPhysical() && this.isHpEffect() && value > 0 && v[100 + user.actorId()] >= 1) {
// Increase the damage by a multiplier.
value *= 2.5;
// Round up the damage.
value = Math.ceil(value);
v[100 + user.actorId()] = 2;
}
</Custom Confirm Effect>

<Custom Action End Effect>
if (v[100 + user.actorId()]==2){
user.removeState(24);
v[100 + user.actorId()] = 0;
}
</Custom Action End Effect>

Original thread: https://forums.rpgmakerweb.com/threads/need-help-power-charge-damage-only-apply-to-1-enemy.108438/