I have made an aoe spell that should damage all units in her range but it damages only one in each range. The spell damages a unit in center with full damage, near center with 75% damage, 200 from center with 50% and 300 from center with 25% here is the trigger: (without specialeffects)
- TimePortal
-
Events
- Unit - A unit starts the effct of an ability
-
Conditions
- (Ability being cast) Equal to TimePortal
-
Actions
- Set TP_Place = (Target point of ability being cast)
- Unit - Create 1 TimePortal for (Owner of (Casting unit)) at TP_Place facing (Position of (Casting unit))
- Set TP_Effect = (Last created unit)
- Unit - Add a 4.25 seconds Generic expiration timer to (Last creatd unit)
- Set TP_Group = (Units within 10.00 of (Position of TP_Effect) matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (casting unit)) Equal to True))
-
Unit Group - Pick every unit in TP_Group and do (Actions)
-
Loop - Actions
- Unit - Add Time Portal damage (Center) to TP_Effect
- Unit - Set level of Time Portal damage (Center) to (Level of Time Portal for (casting unit))
- Unit - Order TP_Effect to Undead Lich - Frost Nova (Picked unit)
- Wait 0.25 seconds.
- Unit - Remove Time Portal damage (Center) from TP_Effect
-
Loop - Actions
- Custom script: call DestroyGroup(udg_TP_Group)
- Wait 1.00 seconds.
- Set TP_Group = (Units within 115.00 of (Position of TP_Effect) matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (casting unit)) Equal to True))
-
Unit Group - Pick every unit in TP_Group and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If-Conditions
- ((Picked unit) has buff TimePortal) Equal to True
-
Then - Actions
- Skip remaining actions
- Else - Actions
- Unit - Add Time Portal damage (100Range) to TP_Effect
- Unit - Set level of Time Portal damage (100Range) to (Level of Time Portal for (casting unit))
- Unit - Order TP_Effect to Undead Lich - Frost Nova (Picked unit)
- Wait 0.25 seconds.
- Unit - Remove Time Portal damage (100Range) from TP_Effect
-
If-Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call DestroyGroup(udg_TP_Group)
- Wait 1.00 seconds
- Set TP_Group = (Units within 215.00 of (Position of TP_Effect) matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (casting unit)) Equal to True))
-
Unit Group - Pick every unit in TP_Group and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If-Conditions
- ((Picked unit) has buff TimePortal) Equal to True
-
Then - Actions
- Skip remaining actions
- Else - Actions
- Unit - Add Time Portal damage (200Range) to TP_Effect
- Unit - Set level of Time Portal damage (200Range) to (Level of Time Portal for (casting unit))
- Unit - Order TP_Effect to Undead Lich - Frost Nova (Picked unit)
- Wait 0.25 seconds.
- Unit - Remove Time Portal damage (200Range) from TP_Effect
-
If-Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call DestroyGroup(udg_TP_Group)
- Wait 1.00 seconds
- Set TP_Group = (Units within 315.00 of (Position of TP_Effect) matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (casting unit)) Equal to True))
-
Unit Group - Pick every unit in TP_Group and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If-Conditions
- ((Picked unit) has buff TimePortal) Equal to True
-
Then - Actions
- Skip remaining actions
- Else - Actions
- Unit - Add Time Portal damage (300Range) to TP_Effect
- Unit - Set level of Time Portal damage (300Range) to (Level of Time Portal for (casting unit))
- Unit - Order TP_Effect to Undead Lich - Frost Nova (Picked unit)
- Wait 0.25 seconds.
- Unit - Remove Time Portal damage (300Range) from TP_Effect
-
If-Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call DestroyGroup(udg_TP_Group)