I made this trigger for a unit to automatically cast "anti magic shell".
2 Problems: 1.When the unit is computer controlled it doesn't cast the ability at all...when owned by a player it works fine (is there a way to make it work for AI controlled units?)
2. If the trigger works, the units always stops after using the "dummy heal" and doesnt do anything ( I want it to keep attacking after casting. Any ideas?)
Thanks in advance!
-
Anti magic shell
-

Events
-


Unit - A unit Begins channeling an ability
-
-

Conditions
-


And - All (Conditions) are true
-



Conditions
-




(Ability being cast) Equal to Dummy Heal
-




(Unit-type of (Casting unit)) Equal to Faceless One Destroyer
-
-
-
-

Actions
-


Set VariableSet tempLocation = (Position of (Triggering unit))
-


Unit - Create 1 Dummy for (Owner of (Triggering unit)) at tempLocation facing (Position of (Triggering unit))
-


Unit - Add Anti-magic Shell to (Last created unit)
-


Unit - Order (Last created unit) to Undead Banshee - Anti-magic Shell (Target unit of ability being cast)
-


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


Custom script: call RemoveLocation(udg_tempLocation)
-
-
2 Problems: 1.When the unit is computer controlled it doesn't cast the ability at all...when owned by a player it works fine (is there a way to make it work for AI controlled units?)
2. If the trigger works, the units always stops after using the "dummy heal" and doesnt do anything ( I want it to keep attacking after casting. Any ideas?)
Thanks in advance!



