turok255
New Member
- Reaction score
- 30
So I got this spell that slows enemy movement / attack speed. It works exactly how I want it to but after the spell is over the units are still slow. Heres the trigger.
The dummy units with the ability to slow units are gone though.
Code:
Vine Trap
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Sprout |cffffcc00V|rines
Actions
Set LastPoint = (Target point of ability being cast)
Special Effect - Create a special effect at LastPoint using Abilities\Spells\NightElf\Tranquility\Tranquility.mdl
Set specialeffect = (Last created special effect)
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
Unit - Create 1 dummy vine for (Owner of (Casting unit)) at (Random point in (Region centered at LastPoint with size (500.00, 500.00))) facing Default building facing degrees
Set dummyunit = (Last created unit)
Unit - Add a 15.00 second Generic expiration timer to dummyunit
Wait 14.00 seconds
Custom script: set udg_LastPoint = null
Special Effect - Destroy specialeffect
The dummy units with the ability to slow units are gone though.