worldeditors
Cool Member
- Reaction score
- 1
Hello everyone, I'm making an AOE ensnare spell, I've created everything, tested but the dummy unit ensnares me instead of the enemies. It is supposed to ensnare ALL units within 400 range of the hero.
Here's the trigger
Help me pls.:banghead::banghead:
Here's the trigger
Code:
Ensnare
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to AOE ensnare [Survivor]
Actions
Set L = (Position of (Casting unit))
Unit - Create 1 Dummy unit Ensnare for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees
Unit Group - Pick every unit in (Units within 400.00 of L) and do (Unit - Order (Last created unit) to Orc Raider - Ensnare (Picked unit))
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Help me pls.:banghead::banghead: