MV YEP_BuffsStatesCore - Vampiric Skill/Lunatic JavaScript Assistance

I'm currently using YEP_BuffsStatesCore, and I have a skill called FEED which has a chance of applying BLEED to target and is supposed to remove BLEED and HUNGER states from the user. Essentially creating a vampiric skill for the user. As all healing skills in my game remove the BLEED state. At this time, the skill works whether the damage is taken by the target or not which is not the desired effect.

The end state would be NO STATES ADDED/REMOVED from target/user if damage IS zero, and damage must be greater than or equal to 1 for there to be a chance to apply BLEED to target and states removed from the user. Assistance would be appreciated. Current FEED skill notes below:

<Select Conditions>
Not User
</Select Conditions>

<target action>
move user: targets, front, 8
wait for movement
animation 127: target
wait for animation
action effect: target
death break
perform finish
</Target Action>

<Follow Action>
remove state 17: user
remove state 29: user
</Follow Action>
Bump
Bump
I would try to solve this using Yanfly's Skill Core (one of their free plugins) http://www.yanfly.moe/wiki/Skill_Core_(YEP)
Specifically I would be using the following notetag:
JavaScript:
<Post-Damage Eval>
   if(value > 0) {
       user.removeState(x); //x = ID of Bleed
       user.removeState(y); //y = ID of Hunger
       if(Math.random() <= 0.375) //for approximately 37.5% chance; adjust as needed
           target.addState(x); //x = ID of Bleed again
   }
</Post-Damage Eval>
The above solution should work. If you wanted it contained within an action sequence, you should be able to modify your follow action to:
Code:
if target.result().hpDamage > 0
    remove state 17: user
    remove state 29: user
end
Thanks all, it worked. SOLVED.
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/yep_buffsstatescore-vampiric-skill-lunatic-javascript-assistance.142492/