- Joined
- Aug 31, 2009
- Messages
- 778
Hey all, I've got a problem with some dummy units involved in a teleport ambush type spell I'm making.
When the caster is owned by a player, the spell works perfectly, but if a computer is the owner, the dummy units will not cast their spells (the stun and the Bloodlust type effect called Flurry).
This leads me to believe that somehow the computer is taking control of the dummies and making them not cast their spells.
Can anyone find a way to stop this happening?
Here's the spell:
When the caster is owned by a player, the spell works perfectly, but if a computer is the owner, the dummy units will not cast their spells (the stun and the Bloodlust type effect called Flurry).
This leads me to believe that somehow the computer is taking control of the dummies and making them not cast their spells.
Can anyone find a way to stop this happening?
Here's the spell:
-
Ambush
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Ambush
-
Actions
- Set point = (Position of (Triggering unit))
- Set point2 = (Position of (Target unit of ability being cast))
- Set point3 = (point2 offset by 90.00 towards ((Facing of (Target unit of ability being cast)) + 180.00) degrees)
- Special Effect - Create a special effect at point using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Unit - Create 1 Dummy for (Owner of (Triggering unit)) at point2 facing Default building facing degrees
- Unit - Add Dummy Stun to (Last created unit)
- Unit - Order (Last created unit) to Neutral - Firebolt (Target unit of ability being cast)
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
- Custom script: call SetUnitX(udg_unit, GetLocationX(udg_point3))
- Custom script: call SetUnitY(udg_unit, GetLocationY(udg_point3))
- Unit - Order (Triggering unit) to Attack (Target unit of ability being cast)
- Unit - Create 1 Dummy for (Owner of (Triggering unit)) at point3 facing Default building facing degrees
- Unit - Add Flurry to (Last created unit)
- Unit - Order (Last created unit) to Orc Shaman - Bloodlust (Triggering unit)
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation(udg_point)
- Custom script: call RemoveLocation(udg_point2)
- Custom script: call RemoveLocation(udg_point3)
-
Events
Last edited: