- Joined
- Mar 3, 2009
- Messages
- 327
I made a spell based attack system for my map. You use it, then it replaces the ability with a dummy saying that it's cooling down, then it waits cooldown[player number of owner of (casting unit)] and replaces the dummy with the real ability, then you're ready to go again 
the problem is, it only works for red. When any other players use it they get stuck in the cooldown and dont come out.
i wrote this at 11:00 at night so the trigger might not be an exact replica, but there arent any problems with the triggering as far as i can see

the problem is, it only works for red. When any other players use it they get stuck in the cooldown and dont come out.
i wrote this at 11:00 at night so the trigger might not be an exact replica, but there arent any problems with the triggering as far as i can see
-
Event:
-
A unit starts the effect of an ability
-
Conditions:
-
Ability being cast equal to attack
-
Actions:
-
Set Temppoint1[player number of (owner of(casting unit) = position of casting unit
-
Set Temppoint2[player number of (owner of(casting unit) = position of casting unit
-
sets unit groups, damages them, makes floating text etc.
-
remove leaks
-
Unit - add Attack cooldown to (casting unit)
-
Unit - remove Attack from (casting unit)
-
Wait (cooldown[player number of(owner of(casting unit))] seconds
-
Unit - remove Attack cooldown from (casting unit)
-
Unit - add Attack to (casting unit)