R
Regalth
Guest
I'm having trouble with one of my new abilities. When used, it's supposed to put every unit around the target to sleep. I tried using dummy units, like this:
Events: A unit Finishes casting an ability
Conditions: Ability being cast equal to (Black Night)
Actions: Pick every unit in (Units within 500 of (Target order of ability being cast)) and do actions:
Create one Black Night Dummy Unit for (Owner of (Triggering unit)) at
position of (Picked unit)) facing default building degrees.
Order (Last created unit) to Undead Dreadlord - Sleep (Picked unit)
Wait (1.00) seconds
Pick every unit in (Units of type: Black Night Dummy Unit) and do action: Kill (Picked Unit).
Problem is, it doesn't work. When I cast the ability, no dummy units pop up (I made them visible for the test) and, naturally, no spells are cast. What's going on?
Events: A unit Finishes casting an ability
Conditions: Ability being cast equal to (Black Night)
Actions: Pick every unit in (Units within 500 of (Target order of ability being cast)) and do actions:
Create one Black Night Dummy Unit for (Owner of (Triggering unit)) at
position of (Picked unit)) facing default building degrees.
Order (Last created unit) to Undead Dreadlord - Sleep (Picked unit)
Wait (1.00) seconds
Pick every unit in (Units of type: Black Night Dummy Unit) and do action: Kill (Picked Unit).
Problem is, it doesn't work. When I cast the ability, no dummy units pop up (I made them visible for the test) and, naturally, no spells are cast. What's going on?


