Hi
I got a little problem with an ability I made. Here's how it's work:
____________________________________________________________
Event:
- Unit - a unit starts the effect of an ability.
Condition:
-(Ability being cast) Equal to (SPELL X)
Actions:
-Set intTARGET(0) = (Target unir of ability being cast).
<<This part just create a dummy to damage and blablabla, then:<<
-Unit - add (SPELL X Debuff) to (Target unir of ability being cast) << This is based on Item Hero Stat Bonus<<
-Wait 30 seconds
-Unit - Remove (SPELL X Debuff) from intTARGET(0)
____________________________________________________________
So the problem is that multiple players/ennemies can use this trigger at the same time and by the time my "wait 30sec" is over, the intTARGET could have changed, making the spell permanent on the target.
Anyone could provide some information to how I could make this more successful?
I got a little problem with an ability I made. Here's how it's work:
____________________________________________________________
Event:
- Unit - a unit starts the effect of an ability.
Condition:
-(Ability being cast) Equal to (SPELL X)
Actions:
-Set intTARGET(0) = (Target unir of ability being cast).
<<This part just create a dummy to damage and blablabla, then:<<
-Unit - add (SPELL X Debuff) to (Target unir of ability being cast) << This is based on Item Hero Stat Bonus<<
-Wait 30 seconds
-Unit - Remove (SPELL X Debuff) from intTARGET(0)
____________________________________________________________
So the problem is that multiple players/ennemies can use this trigger at the same time and by the time my "wait 30sec" is over, the intTARGET could have changed, making the spell permanent on the target.
Anyone could provide some information to how I could make this more successful?