Can anyone help me fix the leak here?
I was using the Leak Checker and it said this
(Line: 8) (Word: 9) Location Leak
Set Chaos_Meteor_Point_Cast = ((Target point of ability being cast) offset by -400.00 towards (Facing of (Triggering unit)) degrees)
Set Chaos_Meteor_Point_Cast = ((Target point of ability being cast) ^Leak
(Suggested Fix) No suggested fixes.
Here's the trigger anyway
I was using the Leak Checker and it said this
(Line: 8) (Word: 9) Location Leak
Set Chaos_Meteor_Point_Cast = ((Target point of ability being cast) offset by -400.00 towards (Facing of (Triggering unit)) degrees)
Set Chaos_Meteor_Point_Cast = ((Target point of ability being cast) ^Leak
(Suggested Fix) No suggested fixes.
Here's the trigger anyway
Code:
Chaos Meteor Cast
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Chaos Meteor
Actions
Sound - Play Meteor_Land_Sound <gen>
Set Chaos_Meteor_Point_Cast = ((Target point of ability being cast) offset by -400.00 towards (Facing of (Triggering unit)) degrees)
Unit - Create 1 Meteor for (Owner of (Triggering unit)) at Chaos_Meteor_Point_Cast facing (Facing of (Casting unit)) degrees
Set Chaos_Meteor_Unit[0] = (Last created unit)
Unit Group - Add Chaos_Meteor_Unit[0] to Chaos_Meteor_Group
Unit - Add a 6.00 second Generic expiration timer to Chaos_Meteor_Unit[0]
Trigger - Turn on Chaos Meteor Land <gen>
Trigger - Turn on Chaos Meteor Special Effects <gen>
Trigger - Turn on Chaos Meteor Special Effects 2 <gen>
Trigger - Turn on Chaos Meteor Damage <gen>
Custom script: call RemoveLocation(udg_Chaos_Meteor_Point_Cast)