After casting the ability 2 times it just doesn't work. At first the location wasn't stored in an array so thought it was the issue, but it did not fix it so I am out of ideas.
-
Healing Surge
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Healing Surge (Level 1)
-
-
Actions
-
Set HealingSurge_Temp = (HealingSurge_Temp + 1)
-
Set HealingSurge_Caster[HealingSurge_Temp] = (Triggering unit)
-
Set HealingSurge_Target[HealingSurge_Temp] = (Target unit of ability being cast)
-
Set HealingSurge_TempPoint[HealingSurge_Temp] = (Position of HealingSurge_Target[HealingSurge_Temp])
-
Set HealingSurge_Count[HealingSurge_Temp] = 10
-
Unit - Create 1 Dummy Unit for (Owner of HealingSurge_Caster[HealingSurge_Temp]) at HealingSurge_TempPoint[HealingSurge_Temp] facing Default building facing degrees
-
Set TempDummy = (Last created unit)
-
Unit - Add a 1.00 second Generic expiration timer to TempDummy
-
Unit - Add Healing Surge Initial Cast (Dummy Cast, Heal) to TempDummy
-
Unit - Order TempDummy to Human Priest - Heal HealingSurge_Target[HealingSurge_Temp]
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
HealingSurge_Temp Equal to 1
-
-
Then - Actions
-
Trigger - Turn on Healing Surge Effect <gen>
-
-
Else - Actions
-
-
-
-
Healing Surge Effect
-
Events
-
Time - Every 1.00 seconds of game time
-
-
Conditions
-
Actions
-
For each (Integer HealingSurge_LoopInteger) from 1 to HealingSurge_Temp, do (Actions)
-
Loop - Actions
-
Set HealingSurge_Count[HealingSurge_LoopInteger] = (HealingSurge_Count[HealingSurge_LoopInteger] - 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
HealingSurge_Count[HealingSurge_LoopInteger] Greater than or equal to 0
-
-
Then - Actions
-
Set HealingSurge_TempPoint[HealingSurge_LoopInteger] = (Position of HealingSurge_Target[HealingSurge_LoopInteger])
-
Unit - Create 1 Dummy Unit for (Owner of HealingSurge_Caster[HealingSurge_LoopInteger]) at HealingSurge_TempPoint[HealingSurge_LoopInteger] facing Default building facing degrees
-
Set TempDummy = (Last created unit)
-
Unit - Add a 1.00 second Generic expiration timer to TempDummy
-
Unit - Add Healing Surge Tick (Dummy Cast) to TempDummy
-
Unit - Order TempDummy to Human Paladin - Holy Light HealingSurge_Target[HealingSurge_LoopInteger]
-
Custom script: call RemoveLocation (udg_HealingSurge_TempPoint[udg_HealingSurge_LoopInteger])
-
-
Else - Actions
-
Set HealingSurge_Caster[HealingSurge_LoopInteger] = HealingSurge_Caster[HealingSurge_Temp]
-
Set HealingSurge_Target[HealingSurge_LoopInteger] = HealingSurge_Target[HealingSurge_Temp]
-
Set HealingSurge_Count[HealingSurge_LoopInteger] = HealingSurge_Count[HealingSurge_Temp]
-
Set HealingSurge_LoopInteger = (HealingSurge_LoopInteger - 1)
-
Set HealingSurge_Temp = (HealingSurge_Temp - 1)
-
Custom script: call RemoveLocation (udg_HealingSurge_TempPoint[udg_HealingSurge_Temp])
-
Trigger - Turn off (This trigger)
-
-
-
-
-
-