I am trying to use the following formula:
b.stateRate(5) < 0.2 ? b.addState(33) : b.addState(32)); a.atk-b.def
I'm trying to say: if the target has less than 20% resistance to State5, then attack and inflict state 33; otherwise, attack and inflict state 32.
The skill doesn't provide either result; it just says 0. If I change the first term, to something like b.def > 1, then it works. So not sure if I'm calling the right function. Do I have an error in the formula?
Help much appreciated.
b.stateRate(5) < 0.2 ? b.addState(33) : b.addState(32)); a.atk-b.def
I'm trying to say: if the target has less than 20% resistance to State5, then attack and inflict state 33; otherwise, attack and inflict state 32.
The skill doesn't provide either result; it just says 0. If I change the first term, to something like b.def > 1, then it works. So not sure if I'm calling the right function. Do I have an error in the formula?
Help much appreciated.