I'm currently trying to create a damage formula which checks if an enemy has a state and applies damage and a another state depending on if it's applied.
Problem is it always returns 0 damage so long as addState is in the code.
I've tried
Code:
andif ( b.isStateAffected(40) ) { a.atk * 1.25; b.addState(41); } else { a.atk * 0.75; }Code:
and different variations of these but they always return 0 damage.b.isStateAffected(40) ? b.addState(41) ; a.atk * 1.25: a.atk * 0.75Can anyone point out what I'm doing wrong?