YEP Buffs & States Core: Can't get notetags working

Hey! I'm fairly new to all this, so I think I might be missing something. I tried to write a react effect that functions basically as a 1-hit invulnerability buff. I placed this notetag in a state called "Invulnerable":

<Custom React Effect>
if (this.isHPEffect() && value > 0) {
value = 0;
target.removeState(11);
target.clearResult();
}
</Custom React Effect>

But this effect didn't go off. I then simplified it to just reducing the value to 0, and still nothing. Finally, I disabled all of my plug-ins except for YEP_CoreEngine, YEP_X_CoreUpdatesOpt, BattleEngineCore, SkillCore, BuffStatesCore, and AutoPassiveStates. Still nothing.

What could I be overlooking? Let me know if more info is needed.
I believe it is this.isHpEffect(), not this.isHPEffect(). Capitalization is important here. If the function you call doesn't exist, the if statement returns false, and everything within it does not trigger.
Also, this won't have too much of an effect on your state as is, but if you replace the 11 in your removeState() function with stateId, it will remove the state it is attached to. This means if you copy and paste the state into a different slot, you won't have to change the Id in the brackets every time.

Original thread: https://forums.rpgmakerweb.com/threads/yep-buffs-states-core-cant-get-notetags-working.117880/