Hi there.
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
and
and different variations of these but they always return 0 damage.
Can anyone point out what I'm doing wrong?
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:
if ( b.isStateAffected(40) ) { a.atk * 1.25; b.addState(41); } else { a.atk * 0.75; }
Code:
b.isStateAffected(40) ? b.addState(41) ; a.atk * 1.25: a.atk * 0.75
Can anyone point out what I'm doing wrong?