• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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