Dummy units not casting ability

Squishy

You can change this now in User CP.
Reaction score
127
My ability is supposed to cast Shadow Strike from the position of the casting unit at every unit within the AoE of the ability. There is something wrong but I can't figure out what it is. Any ideas? Heres my trigger.
Code:
Ability
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Ability 
    Actions
        Set Temp_Point = (Target point of ability being cast)
        Set Temp_Group = (Units within 200.00 of Temp_Point matching (((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True))
        Custom script:   call RemoveLocation (udg_Temp_Point)
        Unit Group - Pick every unit in Temp_Group and do (Actions)
            Loop - Actions
                Set Temp_Point = (Position of (Casting unit))
                Unit - Create 1 Dummy for (Owner of (Casting unit)) at Temp_Point facing Default building facing degrees
                Custom script:   call RemoveLocation (udg_Temp_Point)
                Unit - Add Shadow Strike to (Last created unit)
                Unit - Order (Last created unit) to Night Elf Warden - Shadow Strike (Picked unit)
                Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
        Custom script:   call DestroyGroup (udg_Temp_Group)
 

Cidzero

Imma firin mah lazer!!!1!1
Reaction score
39
The time for the dummies to get close enough and to cast their abilities might not be less than 10 seconds.

Check:
-Casting range of dummy ability
-Mana cost of dummy ability
-Casting time of dummy ability
-Requirements for dummy ability
 

Squishy

You can change this now in User CP.
Reaction score
127
>Cidzero
I forgot to change the mana cost to 0. Wow I'm an idiot. Thanks, +Rep.:D

>Exfyre
My ability is a target AoE. So it would pick every unit within 200 of the target point.
 

Dmshu

New Member
Reaction score
9
I had this problem with a spell based off of cripple and I solved it by changing it from owner of picked unit and it worked. I think the computer ai is "smart" enough to cancel an order that it knows is not beneficial.

edit: banish to cripple

you know to think of it it might not of had allies/player units checked as legal targets but its been awhile so maybe the ai doesn't intercept orders might want to check to make sure.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top