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?
I've also tried to remove the value and use Trait Attack * 250%, but the result is still the same.
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?
<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>
// 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>