Here's my trigger for my custom spell. Just wondering if I cleaned leaks correctly?
-
Crush
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Crush
-
Actions
- Set tempPoint = (Position of (Triggering unit))
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 512.00 of tempPoint) and do (Actions)
-
Loop - Actions
- Unit - Create 1 Crush Dummy Caster for (Owner of (Triggering unit)) at tempPoint facing 0.00 degrees
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
- Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Picked unit)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_tempPoint)
-
Events