I have a memory leak after this trigger is triggered a few times. There are another two triggers to go with this, but the leak is caused by this trigger. Any help much appreciated.
Thanks,
Morbid.
Thanks,
Morbid.
Trigger:
- Events:
- Unit - A Unit begins casting an Ability
- Conditions:
- ((Ability being cast) Equal to (==) Claim ) and ((Owner of (Target unit of ability being cast)) Equal to (==) Player 3 (Teal))
- Actions:
- Unit - Kill (Target unit of ability being cast)
- If ((Owner of (Triggering unit)) Equal to (==) Player 1 (Red)) then do (Unit - Create 1 Tower (Undead) for Player 1 (Red) at (Position of (Target unit of ability being cast)) Facing Default building facing (270.0) degrees) else do (Do nothing)
- If ((Owner of (Triggering unit)) Equal to (==) Player 2 (Blue)) then do (Unit - Create 1 Tower for Player 2 (Blue) at (Position of (Target unit of ability being cast)) Facing Default building facing (270.0) degrees) else do (Do nothing)