Skill Condition. Help![Solved]

Hello!
I'm using Yanfly plugins. I added this passive skill "Echo of Healing" to my game. This passive effect makes it so that any healing done by a member affected by this passive will grant an additional percentage done to their target.

Check the link below for an accurate description.
YEP Plugin: http://www.yanfly.moe/wiki/Echo_of_Light_(MV_Plugin_Tips_&_Tricks)

<Custom Establish Effect>
// Check if the action deals HP healing and the target is alive.
if (this.isHpEffect() && target.result().hpDamage < 0 && target.isAlive()) {
// Add the Echo of Healing state.
target.addState(164);
// Calculate 20% of the amount healed.
var healing = Math.abs(Math.ceil(target.result().hpDamage * 0.20));
// Default the echo healing total to 0.
target._echoHealing = target._echoHealing || 0;
// Add the healing amount to the echo healing total.
target._echoHealing += healing;
}
</Custom Establish Effect>

The passive skill works great. My issue is it also works with healing items (potions). I'd like to it works only with healing skill the user has by adding an condition or something to the coding.
if (this.isSkill() && (this.isHpEffect() && target.result().hpDamage < 0 && target.isAlive()) {
that should make it only work on skills and not items
You just miss a parenthesis before this.isHpEffect().

Correct form: if (this.isSkill() && this.isHpEffect() && target.result().hpDamage < 0 && target.isAlive()) {

Thanks dude! 😍

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/skill-condition-help-solved.116333/