I've been trying for a few days now, and I can't get this to work. What it's supposed to do is cast storm bolt on the target (works) wand of illusion on the caster (works) blink the caster to the target (works sometimes) and have a 50% chance to swap positions of the caster and the illusion (doesn't work)
Here's the trigger...
Here's the trigger...
-
Muddling Strike
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Muddling Strike
-
Actions
- Unit - Create 1 Dummy Caster for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees
- Region - Center Venci Illusions <gen> on (Position of (Casting unit))
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Hero - Create Illusion Stick Venci and give it to (Last created unit)
- Hero - Order (Last created unit) to use (Last created item) on (Casting unit)
- Wait 0.20 seconds
- Unit - Move (Casting unit) instantly to (Position of (Target unit of ability being cast))
- Wait 0.01 seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Random integer number between 1 and 10) Less than 6
-
Then - Actions
- Unit Group - Pick every unit in (Units in Venci Illusions <gen> matching ((((Triggering unit) is an illusion) Equal to True) and ((Unit-type of (Triggering unit)) Equal to Satyr Mercinary))) and do (Set IllusionPos = (Position of (Matching unit)))
- Set VenciPos = (Position of (Casting unit))
- Unit - Move (Casting unit) instantly to IllusionPos
- Unit Group - Pick every unit in (Units in Venci Illusions <gen> matching ((((Triggering unit) is an illusion) Equal to True) and ((Unit-type of (Triggering unit)) Equal to Satyr Mercinary))) and do (Unit - Move (Matching unit) instantly to VenciPos)
- Wait 0.01 seconds
- Custom script: call RemoveLocation(udg_IllusionPos)
- Custom script: call RemoveLocation(udg_VenciPos)
-
Else - Actions
- Do nothing
-
If - Conditions
-
Events