I'm trying to do a simple spell like this: A unit will be able to place a nature trap(goblin mine) and if a enemy units walks over it, it will activate like usually and then the unit that activated the goblin land mine will be entangled. Easy shit i thought but apparently i can't get it to work.
-
Untitled Trigger 003
-

Events
-


Unit - A unit Begins casting an ability
-
-

Conditions
-


(Ability being cast) Equal to Nature trap activation (REPUBLIC)
-
-

Actions
-


Set nature_trap = (Position of (Target unit of ability being cast))
-


Unit - Create 1 Dummy for (Owner of (Casting unit)) at nature_trap facing Default building facing degrees
-


Unit - Order (Last created unit) to Night Elf Keeper Of The Grove - Entangling Roots (Target unit of ability being cast)
-


Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-


Custom script: call RemoveLocation (udg_nature_trap)
-
-
-
Untitled Trigger 003 Copy
-

Events
-


Unit - A unit Dies
-
-

Conditions
-


(Unit-type of (Dying unit)) Equal to Nature Trap
-
-

Actions
-


Set nature_trap = (Position of (Dying unit))
-


Unit Group - Pick every unit in (Units within 60.00 of nature_trap) and do (Unit - Create 1 Dummy for (Owner of (Dying unit)) at (Position of (Picked unit)) facing Default building facing degrees)
-


Unit Group - Order (Last created unit group) to Night Elf Keeper Of The Grove - Entangling Roots (Picked unit)
-
-



