Hello, everyone! There's a skill I want to make. I want it to check if the target is affected by a state. If true, the skill should affect the target with another state and then inflict dmg. If false, it should only inflict dmg. I thought it would be something like this, but it doesn't work.
b.isStateAffected(x) ? a.addState(x); (a.mat * 2 - b.mdf * 1) * 1 : (a.mat * 2 - b.mdf * 1) * 1 ;
Can you tell me what am I doing wrong? Thanks for reading!
b.isStateAffected(x) ? a.addState(x); (a.mat * 2 - b.mdf * 1) * 1 : (a.mat * 2 - b.mdf * 1) * 1 ;
Can you tell me what am I doing wrong? Thanks for reading!