Ok so I'm a bit new when it comes to damage formulas, I made a formula which works fine up until I wanted to add onto the formula to deal double damage if the user is affected by a state.
The entire formula is
However this deals zero damage either with or without the state applied
I messed around and saw that, from what I can tell it completely ignores the rest of the formula and only does *2 or *1, which would just be doubling nothing
How do I solve this? I just want to add the * 2 as a modifier or whatever when the state is applied? I also wanted to add more than one modifier depending on states inside the formula
The entire formula is
( ( ( (2 * a.level / 5) +2 ) * 70 * a.atk / b.def ) / 50 + 2 ) * a.isStateAffected(76) ? (* 2) : (* 1);
However this deals zero damage either with or without the state applied
I messed around and saw that, from what I can tell it completely ignores the rest of the formula and only does *2 or *1, which would just be doubling nothing
How do I solve this? I just want to add the * 2 as a modifier or whatever when the state is applied? I also wanted to add more than one modifier depending on states inside the formula