- Joined
- Jul 12, 2021
- Messages
- 97
I have two triggers:
-
Trigger 1
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Howl of Terror (Skeleton Magi)
-
-
Actions
-
Unit Group - Pick every unit in (Units within 750.00 of (Position of (Triggering unit)) matching ((((Matching player) is an ally of (Owner of (Triggering unit)).) Not equal to True) and ((Owner of (Matching unit)) Not equal to (Owner of (Triggering unit)))).) and do (Actions)
-
Loop - Actions
-
Unit - Cause (Triggering unit) to damage (Picked unit), dealing 10.00 damage of attack type Spells and damage type Normal
-
Set VariableSet HowlOfTerrorInteger[(Custom value of (Picked unit))] = 15
-
Unit Group - Add (Picked unit) to HowlOfTerrorUnitGroup
-
Trigger - Turn on Untitled Trigger 00 <gen>
-
-
-
-
-
Trigger 2
-
Events
-
Time - Every 1.00 seconds of game time
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in HowlOfTerrorUnitGroup and do (Actions)
-
Loop - Actions
-
Set VariableSet HowlOfTerrorInteger[(Custom value of (Picked unit))] = (HowlOfTerrorInteger[(Custom value of (Picked unit))] - 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
HowlOfTerrorInteger[(Custom value of (Picked unit))] Greater than or equal to 1
-
-
Then - Actions
-
Unit - Cause (Triggering unit) to damage (Picked unit), dealing 10.00 damage of attack type Spells and damage type Normal
-
-
Else - Actions
-
Unit Group - Remove (Picked unit) from HowlOfTerrorUnitGroup.
-
-
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in HowlOfTerrorUnitGroup) Equal to 0
-
-
Then - Actions
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-
-