Hello,
I'm doing a skill dealing damages depending on current HP
I'm using YEP_SkillCore
This is my Skill damage formula and customization added
dmg :
custom :
My skill is working well, it's taking my current HP to deal the damage BUT instead of dealing the damages then losing the HP, it's losing the HP then dealing the damages
if i'm not clear enough :
if i have 200hp left, it should do 199 + atk *3
but since it's losing the HP before the damage calculation, it's doing : 1 + atk*3
any idea on how i could solve this please?
thx 🙂
I'm doing a skill dealing damages depending on current HP
I'm using YEP_SkillCore
This is my Skill damage formula and customization added
dmg :
Code:
a.hp+a.atk*3
custom :
Code:
<Custom Requirement>
if (user.hp > 1) {
value = true;
} else {
value = false;
}
</Custom Requirement>
<Custom HP Cost>
cost+= user.hp - 1
</Custom HP Cost>
My skill is working well, it's taking my current HP to deal the damage BUT instead of dealing the damages then losing the HP, it's losing the HP then dealing the damages
if i'm not clear enough :
if i have 200hp left, it should do 199 + atk *3
but since it's losing the HP before the damage calculation, it's doing : 1 + atk*3
any idea on how i could solve this please?
thx 🙂