Im having trouble making a skill that affects only the user and cannot be cast if state X is on user.
The skill adds state X to user but does nothing if X is already on the user. It does not work, it can only target user and if user has state X, it will then target any ally and scope is set to user.
<Cannot Select: All>
<Custom Select Condition>
if (target.isStateAffected(X)) {
condition = false;}
else {
condition = true;}
</Custom Select Condition>
<Select Conditions>
Not State: X
</Select Conditions>
The skill adds state X to user but does nothing if X is already on the user. It does not work, it can only target user and if user has state X, it will then target any ally and scope is set to user.
<Cannot Select: All>
<Custom Select Condition>
if (target.isStateAffected(X)) {
condition = false;}
else {
condition = true;}
</Custom Select Condition>
<Select Conditions>
Not State: X
</Select Conditions>