Hi!
I've been trying to play around Yanfly's damage core plugin but I'm really having a hard time trying to figure this one out.
I need a damage formula for this condition (inside the <damage formula></damage formula> tags)
If the target is affected by state "Bleed", the damage formula will be
What i did was:
I know that the condition itself is incorrect. I'll appreciate any help. Thanks in advance!
I've been trying to play around Yanfly's damage core plugin but I'm really having a hard time trying to figure this one out.
I need a damage formula for this condition (inside the <damage formula></damage formula> tags)
If the target is affected by state "Bleed", the damage formula will be
(b.mhp - b.hp) - b.def * 2
If not,
(200 + a.atk * 4) - b.def * 2
If not,
(200 + a.atk * 4) - b.def * 2
What i did was:
<damage formula>if (b.state !== "Bleed") {
value += (b.mhp - b.hp) - b.def * 2;
}
else {
value += (200 + a.atk * 4) - b.def * 2;
}
</damage formula>
value += (b.mhp - b.hp) - b.def * 2;
}
else {
value += (200 + a.atk * 4) - b.def * 2;
}
</damage formula>