-
FearTrap
-
Events
-
Unit - A unit Finishes casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Fear Trap
-
-
Actions
-
Set TempFearTrapLocation = (Position of (Casting unit))
-
Set FearUnitsMap = (Units within 512.00 of TempFearTrapLocation)
-
Unit Group - Pick every unit in FearUnitsMap and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) has buff Fear Trap ) Equal to True
-
-
Then - Actions
-
Selection - Remove (Picked unit) from selection for (Owner of (Picked unit))
-
Unit - Order (Picked unit) to Move To (TempFearTrapLocation offset by 1200.00 towards (Angle from TempFearTrapLocation to (Position of (Picked unit))) degrees)
-
-
Else - Actions
-
-
-
-
Custom script: call DestroyGroup(udg_FearUnitsMap)
-
Custom script: call RemoveLocation(udg_TempFearTrapLocation)
-
-
-
FearOverridePervention
-
Events
-
Player - Player 1 (Red) Selects a unit
-
Player - Player 2 (Blue) Selects a unit
-
-
Conditions
-
((Triggering unit) has buff Fear Trap ) Equal to True
-
-
Actions
-
Selection - Remove (Triggering unit) from selection
-
-