I am pretty sure the untargetable flag is extremely wrong, due to it effecting many other targeting effects.
If it doesn't matter who casts it, then you want to add a buff to the target that lasts 5 seconds, and use the validator to disallow that ability on targets with that buff.
Grammer issue.
Do you mean an auto-cast effect, meaning it will only cast on a target one, but you can manually cast twice?
Or do you mean only allow a single cast on a particular target?
And where is the exclusion coming from? caster or target?
In the most likely case you need to create a validator that is true only if the buff that ability applies is not on the target. If it is, it will fail and prevent the ability cast.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I am pretty sure the untargetable flag is extremely wrong, due to it effecting many other targeting effects. If it doesn't matter who casts it, then you want to add a buff to the target that lasts 5 seconds, and use the validator to disallow that ability on targets with that buff.
Grammer issue. Do you mean an auto-cast effect, meaning it will only cast on a target one, but you can manually cast twice? Or do you mean only allow a single cast on a particular target? And where is the exclusion coming from? caster or target?
In the most likely case you need to create a validator that is true only if the buff that ability applies is not on the target. If it is, it will fail and prevent the ability cast.