Simple leak question

KILLJAW

New Member
Reaction score
0
I just wanted to know, mostly for future reference, whether or not this trigger leaked:

Code:
Unit Change Owner
    Events
        Unit - A unit Dies
    Conditions
        ((Dying unit) is A Hero) Equal to False
        ((Dying unit) is Summoned) Equal to False
    Actions
        Unit - Replace (Dying unit) with a (Unit-type of (Dying unit)) using The new unit's default life and mana
        Unit - Change ownership of (Dying unit) to (Owner of (Killing unit)) and Change color

I am just worried that using (dying unit), (Killing unit) or (Owner of..) might cause a leak.
 

WilliamPa

Active Member
Reaction score
51
Why don't u create new unit at position of triggering unit for owner of killing unit? And i think other event responses except triggering unit won't leak untill wait of 0.01 secs, but i am pretty noob in leaks :D
 

trb92

Throwing science at the wall to see what sticks
Reaction score
142
>I am just worried that using (dying unit), (Killing unit) or (Owner of..) might cause a leak.

Don't be. Those don't leak. This trigger doesn't leak at all.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top