Whenever I have a trigger that uses a dummy to cast a spell I have two issues
1.) The spell will only cast every once in a while. Sometimes the spell works exactly as intended and other times the part that requires the dummy just doesn't go off.
2.) I can't get it to work at all without having a wait command (I assume it gives the dummy time to cast before being removed) but was told I should stay away from waits. What else can I do?
I have a few that look like this and they all have the same problem
1.) The spell will only cast every once in a while. Sometimes the spell works exactly as intended and other times the part that requires the dummy just doesn't go off.
2.) I can't get it to work at all without having a wait command (I assume it gives the dummy time to cast before being removed) but was told I should stay away from waits. What else can I do?
I have a few that look like this and they all have the same problem
-
Misdiretion
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
(Ability being cast) Equal to 920 Misdirection
-
-
Actions
-
Unit - Create 1 Dummy for (Triggering player) at (Position of (Triggering unit)) facing Default building facing degrees
-
Set Misdirection = (Last created unit)
-
Unit - Add 920.1 Invisibility to Misdirection
-
Unit - Order Misdirection to Human Sorceress - Invisibility (Triggering unit)
-
Wait 0.25 seconds
-
Unit - Remove (Last created unit) from the game
-
-