- Joined
- May 8, 2017
- Messages
- 11
- Reaction score
- 0
- First Language
- English
- Primarily Uses
- RMMV
I'm trying to create a skill that heals an ally and also heals the user by a portion of that amount, similarly to the Clemency skill from FFXIV. Using yanfly's skill core lunatic mode, I've used this to achieve this effect:
<Post-Damage Eval>
user.gainHp(Math.floor(-value * 0.5));
</Post-Damage Eval>
However, I'm not quite sure how to make it so that this effect doesn't proc when the selected target is the user itself. I've tried setting the condition "if (!target.isUser()) {", but that didn't work for me.
<Post-Damage Eval>
user.gainHp(Math.floor(-value * 0.5));
</Post-Damage Eval>
However, I'm not quite sure how to make it so that this effect doesn't proc when the selected target is the user itself. I've tried setting the condition "if (!target.isUser()) {", but that didn't work for me.

