How would i remove the Unit group leak from this trigger
EDIT: Wow im an idiot, the problem was because i had Custom script: call DestroyGroup(GroupV) at the end, it works and is leakless now, this can be closed
-
VCast
-

Events
-


Unit - A unit Begins casting an ability
-
-

Conditions
-


(Ability being cast) Equal to Vengence
-
-

Actions
-


Set CasterVengence = (Casting unit)
-


Set L = (Position of CasterVengence)
-


Custom script: set bj_wantDestroyGroup = true
-


Unit Group - Pick every unit in (Units within 700.00 of L matching (((Matching unit) belongs to an enemy of (Owner of CasterVengence)) Equal to True)) and do (Actions)
-



Loop - Actions
-




Unit Group - Add (Picked unit) to GroupV
-
-
-


Custom script: call RemoveLocation(udg_L)
-


Set L = (Position of CasterVengence)
-


Special Effect - Create a special effect at L using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
-


Special Effect - Destroy (Last created special effect)
-


Custom script: call RemoveLocation(udg_L)
-


Set Unit = (Random unit from GroupV)
-


Set L = (Position of Unit)
-


Unit - Move (Casting unit) instantly to L
-


Custom script: call RemoveLocation(udg_L)
-


Set L = (Position of CasterVengence)
-


Special Effect - Create a special effect at L using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
-


Special Effect - Destroy (Last created special effect)
-


Custom script: call RemoveLocation(udg_L)
-


Unit - Cause CasterVengence to damage Unit, dealing 350.00 damage of attack type Hero and damage type Death
-


Wait 0.25 seconds
-


Custom script: call DestroyGroup(GroupV)
-


Unit Group - Remove all units from GroupV
-
-
-
Custom script: set bj_wantDestroyGroup = true
EDIT: Wow im an idiot, the problem was because i had Custom script: call DestroyGroup(GroupV) at the end, it works and is leakless now, this can be closed
Last edited:
