Well, first thing is that I have damage formula that makes the skill deals bonus damage against 0 Agility actors(such as those being Paralyzed. In my little project, Paralyzed characters have their Agility set to 0). Here's how it looks:
if (b.agi <= 0) {a.atk * 4 + a.agi * 10 - b.def * 4} else {a.atk * 4 + a.agi * 4 - b.def * 4}
However, always comes out the "else" option, regardless if "if" condition is met. By the way, there my Paralysis state. And the stats of creature that uses these.
After I done with these, I want that Cockatrice to use it's finisher skill whenever there is Paralyzed actor. And never when there is none.


if (b.agi <= 0) {a.atk * 4 + a.agi * 10 - b.def * 4} else {a.atk * 4 + a.agi * 4 - b.def * 4}
However, always comes out the "else" option, regardless if "if" condition is met. By the way, there my Paralysis state. And the stats of creature that uses these.
After I done with these, I want that Cockatrice to use it's finisher skill whenever there is Paralyzed actor. And never when there is none.

