I tried to create a non-channeling Cloud ability for my Assassin to lower accuracy of enemies in an area around her. Basically it's like Rikimaru's Smokescreen in DotA. My question is, does this leak at any place that I can prevent? And it's only meant to be used by 1 hero so it doesn't actually matter if several units can cast it at the same time or not.
-
Smokescreen
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Smokescreen
-
-
Actions
-
Set HeroCaster = (Casting unit)
-
Unit - Create 1 Dummy for (Owner of HeroCaster) at (Position of HeroCaster) facing Default building facing degrees
-
Set DummyCaster = (Last created unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Smokescreen for HeroCaster) Equal to 1
-
-
Then - Actions
-
Unit - Set level of Smokescreen for DummyCaster to 1
-
Unit - Order DummyCaster to Human Dragonhawk Rider - Cloud (Position of HeroCaster)
-
Unit - Add a 8.00 second Generic expiration timer to DummyCaster
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
-
If - Conditions
-
(Level of Smokescreen for HeroCaster) Equal to 2
-
-
Then - Actions
-
Unit - Set level of Smokescreen for DummyCaster to 2
-
Unit - Order DummyCaster to Human Dragonhawk Rider - Cloud (Position of HeroCaster)
-
Unit - Add a 10.00 second Generic expiration timer to DummyCaster
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Smokescreen for HeroCaster) Equal to 3
-
-
Then - Actions
-
Unit - Set level of Smokescreen for DummyCaster to 3
-
Unit - Order DummyCaster to Human Dragonhawk Rider - Cloud (Position of HeroCaster)
-
Unit - Add a 12.00 second Generic expiration timer to DummyCaster
-
-
-
-