Condition if the target isn't the user?

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.
Don't even bother with a Plugin, this is best done with damage formula coding.
Basically, set the skill to a single ally with the heal effect, but then add a command before the damage formula to heal a (the user).
I don't know the JavaScript Syntax and don't have real computer access at the moment, but there is a pinned topic about using damage formula code in the MV area.
Try using the condition "if (user !== target) {"
Try using the condition "if (user !== target) {"

Worked like a charm. Thanks

Original thread: https://forums.rpgmakerweb.com/threads/condition-if-the-target-isnt-the-user.87942/