MV (YEP_BuffsStatesCore + YEP_SkillCore) "value" is determined in the wrong order

Greetings everyone. I am trying to create basic "Life-Steal" skills with BuffsStatesCore and SkillCore
However, The notetag I gave my skill to do the actual lifesteal does not seem to play nice with the notetag of a damage reduction state.

State Notetag:

<Custom React Effect>
if (value > 0 && this.item().damage.elementId !== 14) {
value = Math.round(value * 0.5);
}
</Custom React Effect>


Skill Notetag:

<Post-Damage Eval>
user.gainHp(Math.round(Math.max(0, (value*0.5)*user.rec)));
</Post-Damage Eval>


Example:
The enemy has a skill that deals 20 damage flat and heals for 50% of damage dealt.
The target may have a state that reduces all damage by 50%.

The enemy hits for 20 damage and the target does not have the state:
Deals 20 damage and heals for 10 HP.

The enemy hits for 20 damage and the target does have the state:
Deals 10 damage and heals for 10 HP.
> The healing should be 5 HP.


Conclusion:
So it seems that the effect from the Skill-notetag is executed before the State-notetag.
Is there a easy solution for this? And if not, are there any other valid workarounds?

Note: I have a lot damage-modifying states, so I'd rather avoid "tagging" all life-steal skills with all states that have such a modifier, creating a thousand conditional branches in every skill.
Might as well just use this. Might clear up issues.
The execution order seems correct, but depending on the plugin order one of the two plugins will not have their effects "value" affected by the other.

The easiest solutions for you would probably be to either swap the order of both plugins (which would create the same issue for <pre-damage eval> and <custom respond effect> combos instead) or use
target.result().hpDamage
target.result().mpDamage

instead of value in your post-damage eval commands (depending on the damage type; as a side effect, the "value" of hp-drain skills would be capped at the targets current hp)
@Sword_of_Dusk Yeah, I knew about this plugin and I did consider it as a last resort, but I just wanted to see if there was another solution since I didn't want to pay 10€ for the bundle just to use a single plugin from there.

@Another Fen going with the "target.result().hpDamage" seems like a great start. I have only done minor testing and it seems to work well, atleast in the example experiment described in my initial post. Also, since all of my "hp-drain" skills will probably be converted into notetags anyways, that should not be problem.

Thank you very much!

Original thread: https://forums.rpgmakerweb.com/threads/yep_buffsstatescore-yep_skillcore-value-is-determined-in-the-wrong-order.134590/