I've been working on a spell, and i've gotten to this point. I need to figure out how to fix the leaks. I haven't done anything like this before(I've done triggering for a while, but i haven't been aware of leaks.), but i've done everything i could find about it. If anybody knows what the issue is, help would be largely apreciated. :3
Hope someone will help soon, and thanks in advance.
-
Slash
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Dusk
-
Actions
- Custom script: set bj_wantDestroyGroup=true
- Unit - Cause (Casting unit) to damage circular area after 0.00 seconds of radius 50.00 at loc3, dealing 100.00 damage of attack type Chaos and damage type Enhanced
- Special Effect - Create a special effect at (loc2 offset by (Real(dusk2)) towards (Angle from loc2 to loc) degrees) using Abilities\Spells\Other\Stampede\StampedeMissileDeath.mdl
- Set dusk = ((Integer(((Distance between loc and loc2) / 20.00))) - ((Integer((Distance between loc and loc2))) mod 20))
- -------- The above triggers are leftovers from previous efforts. I decided to keep them in, in case they may help in some way. --------
- Set loc = (Target point of ability being cast)
- Set loc2 = (Position of (Casting unit))
- Set dusk = (Integer(((Distance between loc and loc2) / 20.00)))
-
For each (Integer A) from 1 to dusk, do (Actions)
-
Loop - Actions
- Set loc3 = (loc2 offset by (Real(dusk2)) towards (Angle from loc2 to loc) degrees)
- Special Effect - Create a special effect at loc3 using Abilities\Spells\Orc\MirrorImage\MirrorImageCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Set Group = (Units within 50.00 of loc3 matching (((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True))
-
Unit Group - Pick every unit in Group and do (Actions)
-
Loop - Actions
- Unit - Cause (Casting unit) to damage (Picked unit), dealing 100.00 damage of attack type Chaos and damage type Normal
-
Loop - Actions
- Custom script: call DestroyGroup(udg_Group)
- Set dusk2 = (dusk2 + 20)
-
Loop - Actions
- Set dusk2 = 0
- Set dusk = 0
- Custom script: call RemoveLocation(udg_loc)
- Custom script: call RemoveLocation(udg_loc2)
- Custom script: call RemoveLocation(udg_loc3)
-
Events