• 🏆 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!

[Trigger] Does this leak?

Status
Not open for further replies.
Level 6
Joined
May 31, 2008
Messages
218
I wonder if this trigger leaks or not? the part where it says
  • Set weather[(Integer A)] = (Last created weather effect)
Cause i checked with leak checker and it says it leaks, but i am a bit confused about this.

  • Create weather
    • Events
    • Conditions
    • Actions
      • -------- Imperial Land --------
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Weatherinteger[0] Equal to (==) 5
          • Then - Actions
            • Set current_weather[0] = 5
            • Multiboard - Set the text for Weather_multiboard item in column 2, row 2 to Heavy Rain
            • Multiboard - Set the icon for Weather_multiboard item in column 2, row 2 to ReplaceableTextures\CommandButtons\BTNBlizzard.blp
              • Do Multiple ActionsFor each (Integer A) from 0 to 8, do (Actions)
                • Loop - Actions
                  • Environment - Turn weather[(Integer A)] Off
              • Do Multiple ActionsFor each (Integer A) from 0 to 8, do (Actions)
                • Loop - Actions
                  • Environment - Remove weather[(Integer A)]
              • Do Multiple ActionsFor each (Integer A) from 0 to 8, do (Actions)
                • Loop - Actions
                  • Set weather_group = (Units in weather_rects[(Integer A)] matching (((Matching unit) is A structure) Not equal to (!=) True))
                  • Unit Group - Pick every unit in weather_group and do (Actions)
                    • Loop - Actions
                      • Unit - Remove Light Rain buff from (Picked unit)
                      • Unit - Remove Light Wind buff from (Picked unit)
                      • Unit - Remove Heavy Wind buff from (Picked unit)
                      • Unit - Remove Heavy Rain buff from (Picked unit)
                      • Unit - Remove Heavy Rain from (Picked unit)
                      • Unit - Remove Heavy Wind from (Picked unit)
                      • Unit - Remove Light Wind from (Picked unit)
                      • Unit - Remove Light Rain from (Picked unit)
                      • Unit - Add Heavy Rain to (Picked unit)
                  • Environment - Create at weather_rects[(Integer A)] the weather effect Lordaeron Rain (Heavy)
                  • Set weather[(Integer A)] = (Last created weather effect)
                  • Custom script: call DestroyGroup (udg_weather_group)
          • Else - Actions
 
Status
Not open for further replies.
Top