I literally just want to add a state AND do damage and the fact that I can't figure it out is driving me insane. Can someone explain what I'm doing wrong here? I feel insanely dumb.
b.def <= (Math.randomInt(20) + 1 + (Math.floor((a.atk - 10) / 2)) + 2) ? b.addState(2) ; Math.randomInt(7) + 2 + (Math.floor((a.atk - 10) /2)) : 0 ;
b.def <= (Math.randomInt(20) + 1 + (Math.floor((a.atk - 10) / 2)) + 2) ? b.addState(2) ; Math.randomInt(7) + 2 + (Math.floor((a.atk - 10) /2)) : 0 ;