CuteCumber
Member
- Reaction score
- 4
Code:
Earthshock
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Earthshock
Actions
Set TW = (Casting unit)
Unit - Create 1 Dummy for (Owner of TW) at ((Position of TW) offset by 50.00 towards 0.00 degrees) facing 0.00 degrees
Unit Group - Add (Last created unit) to TWGroup
Unit - Create 1 Dummy for (Owner of TW) at ((Position of TW) offset by 50.00 towards 45.00 degrees) facing 45.00 degrees
Unit Group - Add (Last created unit) to TWGroup
Unit - Create 1 Dummy for (Owner of TW) at ((Position of TW) offset by 50.00 towards 90.00 degrees) facing 90.00 degrees
Unit Group - Add (Last created unit) to TWGroup
Unit - Create 1 Dummy for (Owner of TW) at ((Position of TW) offset by 50.00 towards 135.00 degrees) facing 135.00 degrees
Unit Group - Add (Last created unit) to TWGroup
Unit - Create 1 Dummy for (Owner of TW) at ((Position of TW) offset by 50.00 towards 180.00 degrees) facing 180.00 degrees
Unit Group - Add (Last created unit) to TWGroup
Unit - Create 1 Dummy for (Owner of TW) at ((Position of TW) offset by 50.00 towards 225.00 degrees) facing 225.00 degrees
Unit Group - Add (Last created unit) to TWGroup
Unit - Create 1 Dummy for (Owner of TW) at ((Position of TW) offset by 50.00 towards 270.00 degrees) facing 270.00 degrees
Unit Group - Add (Last created unit) to TWGroup
Unit - Create 1 Dummy for (Owner of TW) at ((Position of TW) offset by 50.00 towards 315.00 degrees) facing 315.00 degrees
Unit Group - Add (Last created unit) to TWGroup
Unit Group - Pick every unit in TWGroup and do (Actions)
Loop - Actions
Unit - Add Shockwave (TW) to (Picked unit)
Unit - Set level of Shockwave (TW) for (Picked unit) to (Level of Earthshock for TW)
Special Effect - Create a special effect attached to the origin of TW using Abilities\Spells\NightElf\BattleRoar\RoarCaster.mdl
Unit - Order (Picked unit) to Orc Tauren Chieftain - Shockwave (Position of (Picked unit))
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Unit Group - Remove (Picked unit) from TWGroup
I think this trigger can be simplified, but how? Can anybody help me on it? Does it leak? Where and how to clear it? Thank you.