- Joined
- Jun 2, 2009
- Messages
- 1,174
I believe i make it mui but i am not 100% sure
Does it works without issue and how can i remove this leaks? I am not familiar with arrays.
-
Shockwaves
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Shockwave //
-
Actions
- Set TempPointShockwave[(Custom value of (Triggering unit))] = (Target point of ability being cast)
- Set TempCasterShockwave[(Custom value of (Triggering unit))] = (Triggering unit)
- Wait 0.75 seconds
- Set TempGroupShockwave[(Custom value of (Triggering unit))] = (Units within 300.00 of TempPointShockwave[(Custom value of (Triggering unit))])
- Special Effect - Create a special effect at TempPointShockwave[(Custom value of (Triggering unit))] using Units\NightElf\Wisp\WispExplode.mdl
- Special Effect - Destroy (Last created special effect)
-
Unit Group - Pick every unit in TempGroupShockwave[(Custom value of (Triggering unit))] and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) belongs to an enemy of (Owner of TempCasterShockwave[(Custom value of (Triggering unit))])) Equal to True
- ((Picked unit) is A structure) Equal to False
- ((Picked unit) is Mechanical) Equal to False
- ((Picked unit) is alive) Equal to True
- ((Picked unit) is Magic Immune) Equal to False
-
Then - Actions
- Unit - Cause TempCasterShockwave[(Custom value of (Triggering unit))] to damage (Picked unit), dealing (Real((Strength of TempCasterShockwave[(Custom value of (Triggering unit))] (Include bonuses)))) damage of attack type Spells and damage type Magic
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_TempPointShockwave)
- Custom script: call DestroyGroup(udg_TempGroup)
-
Events
Does it works without issue and how can i remove this leaks? I am not familiar with arrays.