Hi All,
I've been thinking of how to fix a leak (potentially multiple leaks) but wasn't sure about it.
Basically the situation is that I have numerous abilities that cause enemies to explode on death, damaging other nearby enemies. However here's where the leak would occur as:
- Enemy 1 dies
- Set location of enemy 1
- Pick unit group around enemy 1
- Damage picked enemies
- IF ANY UNIT DIES -> trigger will run again
The problem here is that obviously if the trigger is run again it won't clear the first location and unit group.
Anyway my thought was just to add a short wait before the on-kill effect, would that work?
I've been thinking of how to fix a leak (potentially multiple leaks) but wasn't sure about it.
Basically the situation is that I have numerous abilities that cause enemies to explode on death, damaging other nearby enemies. However here's where the leak would occur as:
- Enemy 1 dies
- Set location of enemy 1
- Pick unit group around enemy 1
- Damage picked enemies
- IF ANY UNIT DIES -> trigger will run again
The problem here is that obviously if the trigger is run again it won't clear the first location and unit group.
Anyway my thought was just to add a short wait before the on-kill effect, would that work?