-
Life Drain
-
Events
- Unit - A unit Begins channeling an ability
-
Conditions
- (Ability being cast) Equal to Life Drain
-
Actions
- Set I = 0
- Set point = (Target point of ability being cast)
- Set Group = (Units in (Region centered at point with size ((350.00 + (50.00 x (Real((Level of Life Drain for (Casting unit)))))), (350.00 + (50.00 x (Real((Level of Life Drain for (Casting unit)))))))) matching (((((Matching unit) is Magic Immune) Equal to False) and (((
- Set p = (Position of (Casting unit))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in Group) Greater than 0
-
Then - Actions
-
Unit Group - Pick every unit in Group and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- I Less than ((Level of Life Drain for (Casting unit)) + 1)
-
Then - Actions
- Set I = (I + 1)
- Unit - Create 1 Dummy for (Owner of (Casting unit)) at p facing Default building facing degrees
- Unit - Add a 8.00 second Generic expiration timer to (Last created unit)
- Unit - Add Life Drain(Dummy) to (Last created unit)
- Unit - Set level of Life Drain(Dummy) for (Last created unit) to (Level of Life Drain for (Casting unit))
- Unit - Order (Last created unit) to Neutral Dark Ranger - Life Drain (Picked unit)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in Group and do (Actions)
-
Else - Actions
- Unit - Order (Casting unit) to Stop
-
If - Conditions
-
Events
I would really appreciate if someone could tell me what's the problem I'm unable to detect myself...I've been trying to detect it for about a hour and a half
EDIT: NEVERMIND the leaks and you don't have to check the groups,I think it's all fine there,and I'll fix the leaks as soon as I find my problem