- Joined
- Jul 19, 2007
- Messages
- 931
I have spell that works like Mirana's "Moonlight Shadow" ability in DOTA but I also want it to increase the movement speed of all heroes who got the Moonlight Shadow invisibility-ability and remove it when the ability is gone but I'm not sure how to do that. This is how I made it but it doesn't work. I adds the ability but it wont remove it after 11 seconds, why?
-
Moonlight Shadow Speed Bonus lvl1
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to Moonlight Shadow
-
-

Actions
-


Set VariableSet Temp_Group_MS = (Units in (Playable map area) matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) is A Hero) Equal to True) or ((Level of Moonlight Shadow for (Matching unit)) Equal to 1))))
-


Unit Group - Pick every unit in Temp_Group_MS and do (Actions)
-



Loop - Actions
-




Unit - Add Moonlight Shadow Speed Bonus (Spellbook lvl1) to (Picked unit)
-




Wait 11.00 seconds
-




Unit - Remove Moonlight Shadow Speed Bonus (Spellbook lvl1) from (Picked unit)
-
-
-


Custom script: call DestroyGroup(udg_Temp_Group_MS)
-
-





