I have this skill that I want to do damage and inflict bleeding, but if the target is already afflicted by bleeding, then the skill does double damage instead, but not inflict bleeding.
I first tried the skill without the added bleeding, which looked like this, and worked fine under both conditions.
b.state?(26) ? a.mat * 2 - b.mdf * 0.33 : a.mat - b.mdf * 0.33The problem lies in adding the bleeding effect if the target is not affected by bleeding. I made this:
b.state?(26) ? a.mat * 2 - b.mdf * 0.33 : a.mat - b.mdf * 0.33 ; b.add_state(26)But then it skips over the damage calculation and only adds the bleeding.
I also tried putting the add bleed condition in front of the damage calculation, like this:
b.state?(26) ? a.mat * 2 - b.mdf * 0.33 : b.add_state(26) ; a.mat - b.mdf * 0.33It works as intended if the target isn't bleeding, but it skips over the double damage calculation and uses the normal calculation instead.
What do I do to make this work the way I want it?
I first tried the skill without the added bleeding, which looked like this, and worked fine under both conditions.
b.state?(26) ? a.mat * 2 - b.mdf * 0.33 : a.mat - b.mdf * 0.33The problem lies in adding the bleeding effect if the target is not affected by bleeding. I made this:
b.state?(26) ? a.mat * 2 - b.mdf * 0.33 : a.mat - b.mdf * 0.33 ; b.add_state(26)But then it skips over the damage calculation and only adds the bleeding.
I also tried putting the add bleed condition in front of the damage calculation, like this:
b.state?(26) ? a.mat * 2 - b.mdf * 0.33 : b.add_state(26) ; a.mat - b.mdf * 0.33It works as intended if the target isn't bleeding, but it skips over the double damage calculation and uses the normal calculation instead.
What do I do to make this work the way I want it?