Im trying to have a skill deal 15% of targets max HP as bonus damage if enemy has a state.
I did this
<Pre-Damage Eval>
if (b.result().isHit()) {
if (b.isStateAffected(12) && target._enemyId != 3) {
target.gainHp(-target.mhp*.15);
}
}
</Pre-Damage Eval>
So it works perfectly but for some reason it does not show the original damage, is there a code or way to have that number pop up? Right now it just shows the bonus damage
So lets say enemy has 400 max hp and I use this it says damage is 60 but it could in fact lower the HP to less then half.
I did this
<Pre-Damage Eval>
if (b.result().isHit()) {
if (b.isStateAffected(12) && target._enemyId != 3) {
target.gainHp(-target.mhp*.15);
}
}
</Pre-Damage Eval>
So it works perfectly but for some reason it does not show the original damage, is there a code or way to have that number pop up? Right now it just shows the bonus damage
So lets say enemy has 400 max hp and I use this it says damage is 60 but it could in fact lower the HP to less then half.