- Joined
- Oct 18, 2008
- Messages
- 100
What does the ability need to do:
Creates 4 divine spirits for 10 seconds that heal nearby allied units.
But they target the unit with the lowest health.
It only heals once for some reason.
Cast:
Creates 4 divine spirits for 10 seconds that heal nearby allied units.
But they target the unit with the lowest health.
It only heals once for some reason.
Cast:
-
DivineCast
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to (==) |cffffd700Divine Spirits|r (real)
-
Actions
- Set Spel_Unit = (Triggering unit)
-
Set Spell_Level = (Level of (Ability being cast) for (Triggering unit))
-
Do Multiple ActionsFor each (Integer Spell_INT) from 1 to 4, do (Actions)
-
Loop - Actions
- Set Temp_Point = (Position of (Triggering unit))
- Unit - Create 1 Holy Spirit for (Owner of (Triggering unit)) at Temp_Point facing Default building facing (270.0) degrees
- Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
- Unit Group - Add (Last created unit) to Spell_Group_2
- Unit - Set level of Healing Wave for (Last created unit) to Spell_Level
- Custom script: call RemoveLocation(udg_Temp_Point)
-
Loop - Actions
-
Do Multiple ActionsFor each (Integer Spell_INT) from 1 to 4, do (Actions)
- Set Spell_Index = 5
-
Events
-
DivineSpirits
-
Events
- Time - SpellTimer expires
-
Conditions
- Spell_Index Not equal to (!=) 0
-
Actions
- Set Spell_Group = Spell_Group_2
-
Unit Group - Pick every unit in Spell_Group and do (Actions)
-
Loop - Actions
- Set Spel_Unit = (Picked unit)
- Set Spell_Point = (Position of (Picked unit))
- Set Spell_Group_3 = (Units within 512.00 of Spell_Point matching (((Matching unit) belongs to an ally of (Owner of Spel_Unit)) Equal to (==) True))
-
Unit Group - Pick every unit in Spell_Group_3 and do (Actions)
-
Loop - Actions
-
Quest - Display to (All players) the Quest Update message: (Name of (Picked unit))
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Percentage life of (Picked unit)) Less than (<) 100.00
- (Unit-type of (Picked unit)) Not equal to (!=) Holy Spirit
-
Then - Actions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Spell_Target Equal to (==) No unit
-
Then - Actions
- Set Spell_Target = (Picked unit)
-
Else - Actions
- Do nothing
-
If - Conditions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Life of (Picked unit)) Less than (<) (Life of Spell_Target)
- Spell_Target Not equal to (!=) No unit
-
Then - Actions
- Quest - Display to (All players) the Quest Update message: SpellCondition 2
- Set Spell_Target = (Picked unit)
-
Else - Actions
- Do nothing
-
If - Conditions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Else - Actions
- Do nothing
-
If - Conditions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Quest - Display to (All players) the Quest Update message: (Name of (Picked unit))
-
Loop - Actions
- Custom script: call RemoveLocation(udg_Temp_Point)
- Unit - Order Spel_Unit to Orc Shadow Hunter - Healing Wave Spell_Target
- Set Spell_Target = No unit
- Custom script: call DestroyGroup(udg_Spell_Group_3)
-
Loop - Actions
- Set Spell_Index = (Spell_Index - 1)
- Custom script: call DestroyGroup(udg_Spell_Group)
-
Events