- Joined
- Dec 4, 2007
- Messages
- 76
So I made this trigger for a spell, and I wish to know why it lags me when I cast the spell..I can't seem to find any way it would leak, but then again, I suck at leak fixing...So can someone tell me whether it's a leak, or if this just lags because my computer sucks?

-
Aqua Crush 1
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Aqua Crush
-
-
Actions
-
Set CastPoint = (Target point of ability being cast)
-
Set TempInt = 0.00
-
Unit Group - Pick every unit in (Units within 500.00 of (Target point of ability being cast) matching ((Owner of (Matching unit)) Equal to Neutral Hostile)) and do (Actions)
-
Loop - Actions
-
Unit Group - Add (Picked unit) to TempDmgGroup
-
-
-
For each (Integer A) from 1 to 8, do (Actions)
-
Loop - Actions
-
Set TempPoint = (CastPoint offset by 500.00 towards TempInt degrees)
-
Unit - Create 1 Dummy1 for (Owner of (Casting unit)) at TempPoint facing CastPoint
-
Custom script: call RemoveLocation(udg_TempPoint)
-
Unit - Add a 1.80 second Generic expiration timer to (Last created unit)
-
Unit Group - Add (Last created unit) to TempGroup
-
Set TempInt = (TempInt + 45.00)
-
Wait 0.02 seconds
-
-
-
Unit Group - Pick every unit in TempGroup and do (Actions)
-
Loop - Actions
-
Unit - Order (Picked unit) to Move To CastPoint
-
Wait 1.00 seconds
-
Custom script: call RemoveLocation(udg_CastPoint)
-
Unit Group - Remove all units of TempGroup from TempGroup
-
-
-
Unit Group - Pick every unit in TempDmgGroup and do (Actions)
-
Loop - Actions
-
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 250.00)
-
Unit Group - Remove all units of TempDmgGroup from TempDmgGroup
-
-
-
-