MZ Having problems creating a self-heal after dealing damage with VisuStella Post-Damage notetag

Right now I'm finishing up a character mechanic where if she basic attacks an enemy that has a specific state on them, she will heal some hp back. I'm not very familiar with the JS stuff but I've been fumbling my way through so far. My issue is simply that I can't get the healing part to trigger after damage is dealt. This is the code I have in her custom basic attack skill notetag box.

<JS Post-Damage>
if (target.isStateAffected(36) == true)
{
user.gainHP(Math.round(value * 0.5));
};
</JS Post-Damage>

I know this should be easily possible, I just think I'm missing something in my code here that I can't figure out. I'd appreciate it if anyone could help with this!
Try user.gainHp, not HP. Case sensitive. Btw, you may want to try === instead of ==, too.
Try user.gainHp, not HP. Case sensitive. Btw, you may want to try === instead of ==, too.
I figured the solution was going to end up being really simple and silly... It was in fact that case sensitivity on the HP part of the code, swapping to Hp got everything working perfectly! (I didn't end up needing to change the == to ===) Thanks for the help with that!
You don't even need == or === there. When checking if something == true, you can leave off the == true entirely.

Moved to: Plugin Support

Original thread: https://forums.rpgmakerweb.com/threads/having-problems-creating-a-self-heal-after-dealing-damage-with-visustella-post-damage-notetag.139756/