• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[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
 
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.
Back
Top