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

[Trigger] Does this trigger leak?

Status
Not open for further replies.
Level 4
Joined
Sep 22, 2011
Messages
70
I tried using the Leak Check v3 from the site and it says this trigger does not leak, however i recall people saying that player groups leak? I don't know if this leaks or not, please tell me. Thanks
  • Stage 1
    • Events
      • Unit - A unit Gains a level
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Hero level of (Triggering unit)) Equal to 11
        • Then - Actions
          • Set stage = 1
          • Player Group - Pick every player in (All players) and do (Player - Set the current research level of War Veteran Upgrade to 2 for (Picked player))
          • Trigger - Turn off (This trigger)
        • Else - Actions
          • Do nothing
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
No, it doesn't. Picking (All Players) doesn't leak.

Also, you don't have to use the 'Do nothing' :) Leaving the action block empty works the same way.

Is the map Single Player? Turning off that trigger would disable the action for all the other players, and you are enabling the Research for all players, not only for the Owner of the Triggering Unit... (Just in case) :)
 
Status
Not open for further replies.
Top