I want one of my spells to make it so that when a unit dies, if it has a certain buff, it damages nearby units. Here's the trigger I made.. can anyone find a problem with it?
-NS
-
Taint
-
Events
- Unit - A unit Dies
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Triggering unit) has buff Taint (Level 1)) Equal to True
-
Then - Actions
- Unit Group - Pick every unit in (Units within 100.00 of (Position of (Triggering unit)) matching (((Matching unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True)) and do (Unit - Cause (Killing unit) to damage (Picked unit), dealing 45.00 damage of attack type Chaos and damage type Normal)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Triggering unit) has buff Taint (Level 2)) Equal to True
-
Then - Actions
- Unit Group - Pick every unit in (Units within 125.00 of (Position of (Triggering unit)) matching (((Matching unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True)) and do (Unit - Cause (Killing unit) to damage (Picked unit), dealing 90.00 damage of attack type Chaos and damage type Normal)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Triggering unit) has buff Taint (Level 3)) Equal to True
-
Then - Actions
- Unit Group - Pick every unit in (Units within 150.00 of (Position of (Triggering unit)) matching (((Matching unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True)) and do (Unit - Cause (Killing unit) to damage (Picked unit), dealing 135.00 damage of attack type Chaos and damage type Normal)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Triggering unit) has buff Taint (Level 4)) Equal to True
-
Then - Actions
- Unit Group - Pick every unit in (Units within 175.00 of (Position of (Triggering unit)) matching (((Matching unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True)) and do (Unit - Cause (Killing unit) to damage (Picked unit), dealing 180.00 damage of attack type Chaos and damage type Normal)
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-NS