Hi,
I've the following "shard" of trigger :
The problem is that when I add that last line ("Custom script: call DestroyGroup(udg_Temp_Group_ToHeal") my trigger no longer works more than once; and if I do not put, it it'll leak...
How may I get ride of that leak problem... ?
I've the following "shard" of trigger :
Trigger:
- Unit Group - Pick every unit in Temp_Group_ToHeal and do (Actions)
- Loop - Actions
- Unit - Set life of (Picked unit) to ((Percentage life of (Picked unit)) + ((Real(Temp_Spell_Level)) + 2.00))%
- Set Temp_Point = (Position of (Picked unit))
- Special Effect - Create a special effect at Temp_Point using Abilities\Spells\Human\Heal\HealTarget.mdl
- Wait for (Last played sound) to be 0.00 seconds from finished playing
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_Temp_Point)
- Custom script: call DestroyGroup(udg_Temp_Group_ToHeal)
- Loop - Actions
The problem is that when I add that last line ("Custom script: call DestroyGroup(udg_Temp_Group_ToHeal") my trigger no longer works more than once; and if I do not put, it it'll leak...
How may I get ride of that leak problem... ?