I'm trying to create a passive state that will go away when one of two different states are applied.
and I'm getting an error message. Can anyone tell me what I'm doing wrong?
Code:
<Custom Passive Condition>
if (user.isStateAffected(54)) {
condition = false;
} else {
if (user.isStateAffected(83)) {
condition = false;
} else {
condition = true;
}
</Custom Passive Condition>