So i have this trigger working on i don't know if its leaking or not i'm not sure.. can anyone tell me? if its lacking of something?
I've read already about Memory Leaks but i'm still not sure of it pls help
[TRIGGER=Shadowraze 200]Shadowraze 200
Events
Unit - A unit Starts the effect of an ability
Condition
(Ability being cast) Equal to Shadowraze 200
Actions
Set Raze_Point = (Position of (Triggering unit))
Set Raze_Point2 = (Raze_Point offset by 200.00 towards (Facing of (Triggering unit)) degrees)
Set Raze_Dmg = 225.00
Set Raze_AOE = 250.00
Unit - Create 1 Projectile Dummy (Shadowraze) for (Triggering player) at Raze_Point2 facing Raze_Point
Set Raze_Unit = (Last created unit)
Unit Group - Pick every unit in (Units within Raze_AOE of (Position of Raze_Unit) matching (((Matching unit) belong to an enemy of (Triggering player)) Equal to True)) and do (Actions)
Loop Actions
Set Raze_Enemy = (Picked unit)
Unit - Cause Raze_Unit to damage (Picked unit), dealing Raze_Dmg damage of attack type Spells and damage type Magic
Unit - Add a 2.00 second Generic expiration timer to Raze_Unit
Set Raze_Dmg = 0.00
Set Raze_AOE = 0.00
Custom script: call RemoveLocation(udg_Raze_Point)
Custom script: call RemoveLocation(udg_Raze_Point2)[/TRIGGER]
I've read already about Memory Leaks but i'm still not sure of it pls help
[TRIGGER=Shadowraze 200]Shadowraze 200
Events
Unit - A unit Starts the effect of an ability
Condition
(Ability being cast) Equal to Shadowraze 200
Actions
Set Raze_Point = (Position of (Triggering unit))
Set Raze_Point2 = (Raze_Point offset by 200.00 towards (Facing of (Triggering unit)) degrees)
Set Raze_Dmg = 225.00
Set Raze_AOE = 250.00
Unit - Create 1 Projectile Dummy (Shadowraze) for (Triggering player) at Raze_Point2 facing Raze_Point
Set Raze_Unit = (Last created unit)
Unit Group - Pick every unit in (Units within Raze_AOE of (Position of Raze_Unit) matching (((Matching unit) belong to an enemy of (Triggering player)) Equal to True)) and do (Actions)
Loop Actions
Set Raze_Enemy = (Picked unit)
Unit - Cause Raze_Unit to damage (Picked unit), dealing Raze_Dmg damage of attack type Spells and damage type Magic
Unit - Add a 2.00 second Generic expiration timer to Raze_Unit
Set Raze_Dmg = 0.00
Set Raze_AOE = 0.00
Custom script: call RemoveLocation(udg_Raze_Point)
Custom script: call RemoveLocation(udg_Raze_Point2)[/TRIGGER]