I'm trying to make a spell that works in following way: Unit with [aura] gets attacked, then the attacking unit gets entangled with roots. Somehow can't get it to work. Thanks in advance!


-
Nature's Wrath
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
((Attacked unit) has buff Nature's Wrath ) Equal to True
-
-
Actions
-
Set GN_Temppoint = (Position of (Triggering unit))
-
Set GN_Caster = (Casting unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Owner of (Picked unit)) is an enemy of (Owner of GN_Caster)) Equal to True
-
-
Then - Actions
-
Unit - Create 1 dummy nature wrath for (Owner of GN_Caster) at GN_Temppoint facing generic building facing degrees
-
Unit - Set level of Entangling roots dummy for (Last created unit) to (Level of Nature's Wrath for (Triggering unit))
-
Unit - Order (Last created unit) to Night Elf Keeper of the Grove (Picked unit)
-
Unit - Add a 2.00 second generic expiration timer to (Last created unit)
-
-
Else - Actions
-
-
-