Hello,
I am trying to find the best way to have a state grant immunity to skills of a specific type.
To explain; I have a skill type called "gaze" that primarily exists to cause harmful states. I already have it that being "blind" makes you unable to use gaze skills so I thought it would a fun feature to have being blind also make you immune to them. Trouble is how to go about doing that?
Since most of them don't do damage slapping an if b.stateaffected() wouldn't work (unless there's a way to have the skill fail outright in the damage formula).
My current thought is to make all of them apply alternate gaze only versions of states instead of the normal ones and have the blind state grant immunity to those; but that's cumbersome and means every item that heals or prevents a state also needs to heal/prevent its gaze counterpart and if I ever miss one it'll cause issues.
So, I'm hoping someone can point out a more elegant solution.
I am trying to find the best way to have a state grant immunity to skills of a specific type.
To explain; I have a skill type called "gaze" that primarily exists to cause harmful states. I already have it that being "blind" makes you unable to use gaze skills so I thought it would a fun feature to have being blind also make you immune to them. Trouble is how to go about doing that?
Since most of them don't do damage slapping an if b.stateaffected() wouldn't work (unless there's a way to have the skill fail outright in the damage formula).
My current thought is to make all of them apply alternate gaze only versions of states instead of the normal ones and have the blind state grant immunity to those; but that's cumbersome and means every item that heals or prevents a state also needs to heal/prevent its gaze counterpart and if I ever miss one it'll cause issues.
So, I'm hoping someone can point out a more elegant solution.