*bump*
ok... what you did is massive overkill.
first of all, dont pre-place the unit. thats most probably why it only casts once and then dies.
second, why do you use a shockwave? its so much easier (and a hell of a lot neater) to use immolation on the kamehameha unit. make your hero ability based off shockwave, but remove all effects from it. trigger the rest.
third, you should only use one trigger for the unit, and a timer if you are moving it.
fourth, never order a dummy unit to move to a point as art, especially if it still has an attack index enabled.
ill make the ability in your map, and upload it here. ill also post the code, to save you rewriting it.
Trigger 1:
-
Kamehameha
-
Events
-
Unit - A unit Starts the effect of an ability
-
Conditions
-
(Ability being cast) Equal to Mega Kamehameha
-
Actions
-
Set KamePlayer = (Owner of (Triggering unit))
-
Set Loc = (Target point of ability being cast)
-
Set Loc2 = (Position of (Triggering unit))
-
Set KameFacing = (Angle from Loc2 to Loc)
-
Unit - Create 1 Dummy kame11 for KamePlayer at Loc2 facing Default building facing degrees
-
Set KameUnit = (Last created unit)
-
Countdown Timer - Start KameTimer as a Repeating timer that will expire in 0.03 seconds
-
Wait 3.00 seconds
-
Countdown Timer - Pause KameTimer
-
Custom script: call RemoveLocation(udg_Loc)
-
Custom script: call RemoveLocation(udg_Loc2)
-
Custom script: call RemoveUnit(udg_KameUnit)
-
Custom script: set udg_KamePlayer = null
-
Custom script: set udg_KameFacing = 0
Trigger 2:
-
Timer
-
Events
-
Conditions
-
Actions
-
Set Loc3 = (Loc offset by 16.00 towards KameFacing degrees)
-
Unit - Move KameUnit instantly to Loc3
-
Set Loc = (Position of KameUnit)
-
Custom script: call RemoveLocation(udg_Loc3)
i kept your units the same, and made a new ability for kamehameha. its just a shockwave with a different pic and no art.
you could make the explosions at the end, but what mine does is basically move the unit through. and it works more than once (as many times as you want it to)
i think this is for the most part leakless, other than the timer. but its only one timer.