• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Need help cleaning leaks from trigger

Status
Not open for further replies.
Level 8
Joined
Jul 17, 2004
Messages
283
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)
      • Custom script: call RemoveLocation(udg_tempPoint)
 
Status
Not open for further replies.
Top