Perfect! I'll get this fixed by tonight! Thank you for your cooperation!
Use an Action Start duration for the guard start instead: <Action Start: 1>
This way, the action will remain guarding until its next action. 🙂
rate = 50 * bonus;
Game_Action.prototype.executeHpDamage = function(target, value) {
if (value > 0) {
var user = this.subject(); // <-- here. you can't use "user" in the formula for healing this way
target.friendsUnit().processPartyLimitGaugeEval(Yanfly.Param.PLGTakeHpDmg,
user, target, this.item(), value);
user.friendsUnit().processPartyLimitGaugeEval(Yanfly.Param.PLGDealHpDmg,
user, target, this.item(), value);
} else {
target.friendsUnit().processPartyLimitGaugeEval(Yanfly.Param.PLGHealHpDmg,
user, target, this.item(), value);
}
Yanfly.PLG.Game_Action_executeHpDamage.call(this, target, value);
};
Original thread: https://forums.rpgmakerweb.com/threads/yep-yanfly-engine-plugins.48860/