Hi,
So I'm using YEP's Buffs and States Core to do a State that converts poison-type damage to heal.
The notetag in the State works almost perfectly :
Where the State 252 is the one allowing the conversion into heal.
My issue comes with the timing of it. The battler is healed BEFORE the poison applies, meaning he will never get healed to full hp.
I haven't found a post that adresses this issue yet, so could someone help me with it ?
So I'm using YEP's Buffs and States Core to do a State that converts poison-type damage to heal.
The notetag in the State works almost perfectly :
JavaScript:
<Custom Regenerate Effect>
if (user.isStateAffected(252)){
var r = user.hrg;
var h = 0 - (r * 2);
var hot = Math.ceil(user.mhp * h);
target.gainHp(hot);
}
</Custom Regenerate Effect>
Where the State 252 is the one allowing the conversion into heal.
My issue comes with the timing of it. The battler is healed BEFORE the poison applies, meaning he will never get healed to full hp.
I haven't found a post that adresses this issue yet, so could someone help me with it ?