Moderator
M
Moderator
16:35, 24th Jul 2010
TriggerHappy:
You cleaned the leaks and it works fine.
TriggerHappy:
You cleaned the leaks and it works fine.
Greater Heal

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Greater Heal


((Target unit of ability being cast) is alive) Equal to True

Actions


Set Loc[1] = (Position of (Triggering unit))


Set Loc[2] = (Position of (Target unit of ability being cast))


Set Group = (Units within 300.00 of Loc[2] matching (((Matching unit) Not equal to (Target unit of ability being cast)) and ((((Matching unit) is alive) Equal to True) and (((Owner of (Matching unit)) is an ally of (Owner of (Target unit of ability being cast))) Equal to


Set GreaterHeal = ((75.00 + ((Real((Random integer number between 1 and 25))) + (3.00 x ((Real((Level of Greater Heal for (Triggering unit)))) + (Real((Intelligence of (Triggering unit) (Include bonuses)))))))) / 3.00)


Set CriticalStrikeCalculator = (Random integer number between 1 and 100)


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Level of Focus for (Triggering unit)) Greater than 0



Then - Actions




Set GreaterHeal = (GreaterHeal + (GreaterHeal x ((Real((Level of Focus for (Triggering unit)))) x 0.03)))




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






(Random integer number between 1 and 100) Less than or equal to (5 + (5 x (Level of Focus for (Triggering unit))))





Then - Actions






Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + ((Max mana of (Triggering unit)) x (0.01 x (Real((Level of Focus for (Triggering unit)))))))






Special Effect - Create a special effect at Loc[1] using Abilities\Spells\Items\AIma\AImaTarget.mdl






Special Effect - Destroy (Last created special effect)






Floating Text - Create floating text that reads (String((Integer((((Max mana of (Triggering unit)) x 0.01) x (Real((Level of Focus for (Triggering unit))))))))) above (Triggering unit) with Z offset 70.00, using font size 10.00, color (0.00%, 0.00%, 100.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds





Else - Actions



Else - Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




((Owner of (Target unit of ability being cast)) is an ally of (Owner of (Triggering unit))) Equal to True



Then - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






CriticalStrikeCalculator Less than or equal to (15 + (1 x ((Intelligence of (Casting unit) (Include bonuses)) / 5)))





Then - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + (GreaterHeal x 2.00))






Floating Text - Create floating text that reads (String((Integer((GreaterHeal x 2.00))))) above (Target unit of ability being cast) with Z offset 0.00, using font size 15.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Triggering unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in Group and do (Actions)









Loop - Actions










If (All Conditions are True) then do (Then Actions) else do (Else Actions)











If - Conditions












(Picked unit) Equal to (Triggering unit)











Then - Actions












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x ((0.15 x (Real((Level of Holy Excess for (Triggering unit))))) x 2.00)))












Special Effect - Create a special effect at Loc[1] using Abilities\Spells\Human\Heal\HealTarget.mdl












Special Effect - Destroy (Last created special effect)












Floating Text - Create floating text that reads (String((Integer((GreaterHeal x (0.15 x ((Real((Level of Holy Excess for (Triggering unit)))) x 2.00))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds











Else - Actions












Set Loc[3] = (Position of (Picked unit))












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x ((0.10 x (Real((Level of Holy Excess for (Triggering unit))))) x 2.00)))












Special Effect - Create a special effect at Loc[3] using Abilities\Spells\Human\Heal\HealTarget.mdl












Special Effect - Destroy (Last created special effect)












Floating Text - Create floating text that reads (String((Integer((GreaterHeal x (0.10 x ((Real((Level of Holy Excess for (Triggering unit)))) x 2.00))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds












Custom script: call RemoveLocation (udg_Loc[3])







Else - Actions





Else - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + GreaterHeal)






Floating Text - Create floating text that reads (String((Integer(GreaterHeal)))) above (Target unit of ability being cast) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Triggering unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in Group and do (Actions)









Loop - Actions










If (All Conditions are True) then do (Then Actions) else do (Else Actions)











If - Conditions












(Picked unit) Equal to (Triggering unit)











Then - Actions












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x (0.15 x (Real((Level of Holy Excess for (Triggering unit)))))))












Special Effect - Create a special effect at Loc[1] using Abilities\Spells\Human\Heal\HealTarget.mdl












Special Effect - Destroy (Last created special effect)












Floating Text - Create floating text that reads (String((Integer((GreaterHeal x (0.15 x (Real((Level of Holy Excess for (Triggering unit)))))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds











Else - Actions












Set Loc[3] = (Position of (Picked unit))












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))












Special Effect - Create a special effect at Loc[3] using Abilities\Spells\Human\Heal\HealTarget.mdl












Special Effect - Destroy (Last created special effect)












Floating Text - Create floating text that reads (String((Integer((GreaterHeal x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds












Custom script: call RemoveLocation (udg_Loc[3])







Else - Actions



Else - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






CriticalStrikeCalculator Less than or equal to (15 + (1 x ((Intelligence of (Casting unit) (Include bonuses)) / 5)))





Then - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - GreaterHeal)






Floating Text - Create floating text that reads (String((Integer(GreaterHeal)))) above (Target unit of ability being cast) with Z offset 0.00, using font size 15.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Triggering unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in Group and do (Actions)









Loop - Actions










Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - (GreaterHeal x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))










Floating Text - Create floating text that reads (String((Integer((GreaterHeal x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency










Floating Text - Change (Last created floating text): Disable permanence










Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds







Else - Actions





Else - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - (GreaterHeal / 2.00))






Floating Text - Create floating text that reads (String((Integer((GreaterHeal / 2.00))))) above (Target unit of ability being cast) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Triggering unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in Group and do (Actions)









Loop - Actions










Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - ((GreaterHeal / 2.00) x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))










Floating Text - Create floating text that reads (String((Integer(((GreaterHeal / 2.00) x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency










Floating Text - Change (Last created floating text): Disable permanence










Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds







Else - Actions


Custom script: call RemoveLocation (udg_Loc[1])


Custom script: call RemoveLocation (udg_Loc[2])


Custom script: call DestroyGroup (udg_Group)
DummyAbility

Events


Unit - A unit Learns a skill

Conditions


(Learned Hero Skill) Equal to Focus

Actions


Unit - Add DummyAbility to (Triggering unit)


Unit - Set level of DummyAbility for (Triggering unit) to (Level of Focus for (Triggering unit))
Greater Heal

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Greater Heal


((Target unit of ability being cast) is alive) Equal to True

Actions


Set Loc[1] = (Position of (Triggering unit))


Set Loc[2] = (Position of (Target unit of ability being cast))


Set Group = (Units within 800.00 of Loc[2] matching (((Matching unit) Not equal to (Target unit of ability being cast)) and ((((Matching unit) is alive) Equal to True) and (((Owner of (Matching unit)) is an ally of (Owner of (Target unit of ability being cast))) Equal to


Set GreaterHeal = ((75.00 + ((Real((Random integer number between 1 and 25))) + (3.00 x ((Real((Level of Greater Heal for (Triggering unit)))) + (Real((Intelligence of (Triggering unit) (Include bonuses)))))))) / 5.00)


Set CriticalStrikeCalculator = (Random integer number between 1 and 100)


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Level of Focus for (Triggering unit)) Greater than 0



Then - Actions




Set GreaterHeal = (GreaterHeal + (GreaterHeal x ((Real((Level of Focus for (Triggering unit)))) x 0.03)))




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






(Random integer number between 1 and 100) Less than or equal to (5 + (5 x (Level of Focus for (Triggering unit))))





Then - Actions






Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + ((Max mana of (Triggering unit)) x (0.05 x (Real((Level of Focus for (Triggering unit)))))))






Special Effect - Create a special effect at Loc[1] using Abilities\Spells\Items\AIma\AImaTarget.mdl






Special Effect - Destroy (Last created special effect)






Floating Text - Create floating text that reads (String((Integer((((Mana of (Triggering unit)) x 0.05) x (Real((Level of Focus for (Triggering unit))))))))) above (Triggering unit) with Z offset 70.00, using font size 10.00, color (0.00%, 0.00%, 100.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds





Else - Actions



Else - Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




((Owner of (Target unit of ability being cast)) is an ally of (Owner of (Triggering unit))) Equal to True



Then - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






CriticalStrikeCalculator Less than or equal to (15 + (1 x ((Intelligence of (Casting unit) (Include bonuses)) / 5)))





Then - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + (GreaterHeal x 2.00))






Floating Text - Create floating text that reads (String((Integer((GreaterHeal x 2.00))))) above (Target unit of ability being cast) with Z offset 0.00, using font size 15.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Triggering unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in Group and do (Actions)









Loop - Actions










If (All Conditions are True) then do (Then Actions) else do (Else Actions)











If - Conditions












(Picked unit) Equal to (Triggering unit)











Then - Actions












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x ((0.15 x (Real((Level of Holy Excess for (Triggering unit))))) x 2.00)))












Special Effect - Create a special effect at Loc[1] using Abilities\Spells\Human\Heal\HealTarget.mdl












Special Effect - Destroy (Last created special effect)












Floating Text - Create floating text that reads (String((Integer((GreaterHeal x (0.15 x ((Real((Level of Holy Excess for (Triggering unit)))) x 2.00))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds











Else - Actions












Set Loc[3] = (Position of (Picked unit))












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x ((0.10 x (Real((Level of Holy Excess for (Triggering unit))))) x 2.00)))












Special Effect - Create a special effect at Loc[3] using Abilities\Spells\Human\Heal\HealTarget.mdl












Special Effect - Destroy (Last created special effect)












Floating Text - Create floating text that reads (String((Integer((GreaterHeal x (0.10 x ((Real((Level of Holy Excess for (Triggering unit)))) x 2.00))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds












Custom script: call RemoveLocation (udg_Loc[3])







Else - Actions





Else - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + GreaterHeal)






Floating Text - Create floating text that reads (String((Integer(GreaterHeal)))) above (Target unit of ability being cast) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Triggering unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in Group and do (Actions)









Loop - Actions










If (All Conditions are True) then do (Then Actions) else do (Else Actions)











If - Conditions












(Picked unit) Equal to (Triggering unit)











Then - Actions












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x (0.15 x (Real((Level of Holy Excess for (Triggering unit)))))))












Special Effect - Create a special effect at Loc[1] using Abilities\Spells\Human\Heal\HealTarget.mdl












Special Effect - Destroy (Last created special effect)












Floating Text - Create floating text that reads (String((Integer((GreaterHeal x (0.15 x (Real((Level of Holy Excess for (Triggering unit)))))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds











Else - Actions












Set Loc[3] = (Position of (Picked unit))












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))












Special Effect - Create a special effect at Loc[3] using Abilities\Spells\Human\Heal\HealTarget.mdl












Special Effect - Destroy (Last created special effect)












Floating Text - Create floating text that reads (String((Integer((GreaterHeal x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds












Custom script: call RemoveLocation (udg_Loc[3])







Else - Actions



Else - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






CriticalStrikeCalculator Less than or equal to (15 + (1 x ((Intelligence of (Casting unit) (Include bonuses)) / 5)))





Then - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - GreaterHeal)






Floating Text - Create floating text that reads (String((Integer(GreaterHeal)))) above (Target unit of ability being cast) with Z offset 0.00, using font size 15.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Triggering unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in Group and do (Actions)









Loop - Actions










Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - (GreaterHeal x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))










Floating Text - Create floating text that reads (String((Integer((GreaterHeal x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency










Floating Text - Change (Last created floating text): Disable permanence










Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds







Else - Actions





Else - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - (GreaterHeal / 2.00))






Floating Text - Create floating text that reads (String((Integer((GreaterHeal / 2.00))))) above (Target unit of ability being cast) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Triggering unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in Group and do (Actions)









Loop - Actions










Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - ((GreaterHeal / 2.00) x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))










Floating Text - Create floating text that reads (String((Integer(((GreaterHeal / 2.00) x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency










Floating Text - Change (Last created floating text): Disable permanence










Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds







Else - Actions


Custom script: call RemoveLocation (udg_Loc[1])


Custom script: call RemoveLocation (udg_Loc[2])


Custom script: call DestroyGroup (udg_Group)
Greater Heal

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Greater Heal


((Target unit of ability being cast) is alive) Equal to True

Actions


Set Loc[1] = (Position of (Triggering unit))


Set Loc[2] = (Position of (Target unit of ability being cast))


Set Group = (Units within 800.00 of Loc[2] matching (((Matching unit) Not equal to (Target unit of ability being cast)) and ((((Matching unit) is alive) Equal to True) and (((Owner of (Matching unit)) is an ally of (Owner of (Target unit of ability being cast))) Equal to


Set GreaterHeal = ((75.00 + ((Real((Random integer number between 1 and 25))) + (3.00 x ((Real((Level of Greater Heal for (Triggering unit)))) + (Real((Intelligence of (Triggering unit) (Include bonuses)))))))) / 5.00)


Set CriticalStrikeCalculator = (Random integer number between 1 and 100)


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Level of Focus for (Triggering unit)) Greater than 0



Then - Actions




Set GreaterHeal = (GreaterHeal x ((Real((Level of Focus for (Triggering unit)))) x 1.03))




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






(Random integer number between 1 and 100) Less than or equal to (5 + (5 x (Level of Focus for (Triggering unit))))





Then - Actions






Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + ((Max mana of (Triggering unit)) x (0.05 x (Real((Level of Focus for (Triggering unit)))))))






Special Effect - Create a special effect at Loc[1] using Abilities\Spells\Items\AIma\AImaTarget.mdl






Special Effect - Destroy (Last created special effect)






Floating Text - Create floating text that reads (String((Integer((((Mana of (Triggering unit)) x 0.05) x (Real((Level of Focus for (Triggering unit))))))))) above (Triggering unit) with Z offset 70.00, using font size 10.00, color (0.00%, 0.00%, 100.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds





Else - Actions



Else - Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




((Owner of (Target unit of ability being cast)) is an ally of (Owner of (Triggering unit))) Equal to True



Then - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






CriticalStrikeCalculator Less than or equal to (15 + (1 x ((Intelligence of (Casting unit) (Include bonuses)) / 5)))





Then - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + (GreaterHeal x 2.00))






Floating Text - Create floating text that reads (String((Integer((GreaterHeal x 2.00))))) above (Target unit of ability being cast) with Z offset 0.00, using font size 15.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Triggering unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in Group and do (Actions)









Loop - Actions










If (All Conditions are True) then do (Then Actions) else do (Else Actions)











If - Conditions












(Picked unit) Equal to (Triggering unit)











Then - Actions












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x ((0.15 x (Real((Level of Holy Excess for (Triggering unit))))) x 2.00)))












Special Effect - Create a special effect at Loc[1] using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl












Special Effect - Destroy (Last created special effect)












Floating Text - Create floating text that reads (String((Integer((GreaterHeal x (0.15 x ((Real((Level of Holy Excess for (Triggering unit)))) x 2.00))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds











Else - Actions












Set Loc[3] = (Position of (Picked unit))












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x ((0.10 x (Real((Level of Holy Excess for (Triggering unit))))) x 2.00)))












Special Effect - Create a special effect at Loc[3] using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl












Special Effect - Destroy (Last created special effect)












Floating Text - Create floating text that reads (String((Integer((GreaterHeal x (0.10 x ((Real((Level of Holy Excess for (Triggering unit)))) x 2.00))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds












Custom script: call RemoveLocation (udg_Loc[3])







Else - Actions





Else - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + GreaterHeal)






Floating Text - Create floating text that reads (String((Integer(GreaterHeal)))) above (Target unit of ability being cast) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Triggering unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in Group and do (Actions)









Loop - Actions










If (All Conditions are True) then do (Then Actions) else do (Else Actions)











If - Conditions












(Picked unit) Equal to (Triggering unit)











Then - Actions












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x (0.15 x (Real((Level of Holy Excess for (Triggering unit)))))))












Special Effect - Create a special effect at Loc[1] using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl












Special Effect - Destroy (Last created special effect)












Floating Text - Create floating text that reads (String((Integer((GreaterHeal x (0.15 x (Real((Level of Holy Excess for (Triggering unit)))))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds











Else - Actions












Set Loc[3] = (Position of (Picked unit))












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))












Special Effect - Create a special effect at Loc[3] using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl












Special Effect - Destroy (Last created special effect)












Floating Text - Create floating text that reads (String((Integer((GreaterHeal x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds












Custom script: call RemoveLocation (udg_Loc[3])







Else - Actions



Else - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






CriticalStrikeCalculator Less than or equal to (15 + (1 x ((Intelligence of (Casting unit) (Include bonuses)) / 5)))





Then - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - GreaterHeal)






Floating Text - Create floating text that reads (String((Integer(GreaterHeal)))) above (Target unit of ability being cast) with Z offset 0.00, using font size 15.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Triggering unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in Group and do (Actions)









Loop - Actions










Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - (GreaterHeal x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))










Floating Text - Create floating text that reads (String((Integer((GreaterHeal x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency










Floating Text - Change (Last created floating text): Disable permanence










Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds







Else - Actions





Else - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - (GreaterHeal / 2.00))






Floating Text - Create floating text that reads (String((Integer((GreaterHeal / 2.00))))) above (Target unit of ability being cast) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Triggering unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in Group and do (Actions)









Loop - Actions










Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - ((GreaterHeal / 2.00) x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))










Floating Text - Create floating text that reads (String((Integer(((GreaterHeal / 2.00) x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency










Floating Text - Change (Last created floating text): Disable permanence










Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds







Else - Actions


Custom script: call RemoveLocation (udg_Loc[1])


Custom script: call RemoveLocation (udg_Loc[2])


Custom script: call DestroyGroup (udg_Group)
Greater Heal

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Greater Heal


((Target unit of ability being cast) is alive) Equal to True

Actions


Set Loc[1] = (Position of (Triggering unit))


Set Loc[2] = (Position of (Target unit of ability being cast))


Set Group = (Units within 800.00 of Loc[2] matching (((Matching unit) Not equal to (Target unit of ability being cast)) and ((((Matching unit) is alive) Equal to True) and ((Owner of (Matching unit)) Equal to (Owner of (Target unit of ability being cast))))))


Set GreaterHeal = ((75.00 + (Real((Random integer number between 1 and 25)))) + (3.00 x ((Real((Level of Greater Heal for (Triggering unit)))) + (Real((Intelligence of (Triggering unit) (Include bonuses)))))))


Set GreaterHeal = (GreaterHeal / 5.00)


Set CriticalStrikeCalculator = (Random integer number between 1 and 100)


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Level of Focus for (Triggering unit)) Greater than 0



Then - Actions




Set GreaterHeal = (GreaterHeal x ((Real((Level of Focus for (Triggering unit)))) x 1.03))




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






(Random integer number between 1 and 100) Less than or equal to (5 + (5 x (Level of Focus for (Triggering unit))))





Then - Actions






Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + ((Max mana of (Triggering unit)) x (0.05 x (Real((Level of Focus for (Triggering unit)))))))






Special Effect - Create a special effect at Loc[1] using Abilities\Spells\Items\AIma\AImaTarget.mdl






Special Effect - Destroy (Last created special effect)






Floating Text - Create floating text that reads (String((Integer((((Mana of (Triggering unit)) x 0.05) x (Real((Level of Focus for (Triggering unit))))))))) above (Triggering unit) with Z offset 70.00, using font size 10.00, color (0.00%, 0.00%, 100.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds





Else - Actions



Else - Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




((Target unit of ability being cast) is in (Units in (Playable map area) matching (((Matching unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True))) Equal to True



Then - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






CriticalStrikeCalculator Less than or equal to (15 + (1 x ((Intelligence of (Casting unit) (Include bonuses)) / 5)))





Then - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + (GreaterHeal x 2.00))






Floating Text - Create floating text that reads (String((Integer((GreaterHeal x 2.00))))) above (Target unit of ability being cast) with Z offset 0.00, using font size 15.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Triggering unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in Group and do (Actions)









Loop - Actions










If (All Conditions are True) then do (Then Actions) else do (Else Actions)











If - Conditions












(Picked unit) Equal to (Triggering unit)











Then - Actions












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x ((0.15 x (Real((Level of Holy Excess for (Triggering unit))))) x 2.00)))












Special Effect - Create a special effect at Loc[1] using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl












Special Effect - Destroy (Last created special effect)












Floating Text - Create floating text that reads (String((Integer((GreaterHeal x (0.15 x ((Real((Level of Holy Excess for (Triggering unit)))) x 2.00))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds











Else - Actions












Set Loc[3] = (Position of (Picked unit))












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x ((0.10 x (Real((Level of Holy Excess for (Triggering unit))))) x 2.00)))












Special Effect - Create a special effect at Loc[3] using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl












Special Effect - Destroy (Last created special effect)












Floating Text - Create floating text that reads (String((Integer((GreaterHeal x (0.10 x ((Real((Level of Holy Excess for (Triggering unit)))) x 2.00))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds












Custom script: call RemoveLocation (udg_Loc[3])








Custom script: call DestroyGroup (udg_Group)







Else - Actions





Else - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + GreaterHeal)






Floating Text - Create floating text that reads (String((Integer(GreaterHeal)))) above (Target unit of ability being cast) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Triggering unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in Group and do (Actions)









Loop - Actions










If (All Conditions are True) then do (Then Actions) else do (Else Actions)











If - Conditions












(Picked unit) Equal to (Triggering unit)











Then - Actions












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x (0.15 x (Real((Level of Holy Excess for (Triggering unit)))))))












Special Effect - Create a special effect at Loc[1] using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl












Special Effect - Destroy (Last created special effect)












Floating Text - Create floating text that reads (String((Integer((GreaterHeal x (0.15 x (Real((Level of Holy Excess for (Triggering unit)))))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds











Else - Actions












Set Loc[3] = (Position of (Picked unit))












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))












Special Effect - Create a special effect at Loc[3] using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl












Special Effect - Destroy (Last created special effect)












Floating Text - Create floating text that reads (String((Integer((GreaterHeal x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds












Custom script: call RemoveLocation (udg_Loc[3])








Custom script: call DestroyGroup (udg_Group)







Else - Actions



Else - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






CriticalStrikeCalculator Less than or equal to (15 + (1 x ((Intelligence of (Casting unit) (Include bonuses)) / 5)))





Then - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - GreaterHeal)






Floating Text - Create floating text that reads (String((Integer(GreaterHeal)))) above (Target unit of ability being cast) with Z offset 0.00, using font size 15.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Triggering unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in Group and do (Actions)









Loop - Actions










Unit - Set life of (Triggering unit) to ((Life of (Picked unit)) - (GreaterHeal x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))










Floating Text - Create floating text that reads (String((Integer((GreaterHeal x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency










Floating Text - Change (Last created floating text): Disable permanence










Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds








Custom script: call DestroyGroup (udg_Group)







Else - Actions





Else - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - (GreaterHeal / 2.00))






Floating Text - Create floating text that reads (String((Integer((GreaterHeal / 2.00))))) above (Target unit of ability being cast) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Triggering unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in Group and do (Actions)









Loop - Actions










Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - ((GreaterHeal / 2.00) x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))










Floating Text - Create floating text that reads (String((Integer(((GreaterHeal / 2.00) x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency










Floating Text - Change (Last created floating text): Disable permanence










Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds








Custom script: call DestroyGroup (udg_Group)







Else - Actions


Custom script: call RemoveLocation (udg_Loc[1])


Custom script: call RemoveLocation (udg_Loc[2])
Greater Heal

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Greater Heal


((Target unit of ability being cast) is alive) Equal to True

Actions


Set Loc[1] = (Position of (Triggering unit))


Set Loc[2] = (Position of (Target unit of ability being cast))


Set Group = (Units within 800.00 of Loc[2] matching (((Matching unit) Not equal to (Target unit of ability being cast)) and ((((Matching unit) is alive) Equal to True) and ((Owner of (Matching unit)) Equal to (Owner of (Target unit of ability being cast))))))


Set GreaterHeal = ((75.00 + (Real((Random integer number between 1 and 25)))) + (3.00 x ((Real((Level of Greater Heal for (Triggering unit)))) + (Real((Intelligence of (Triggering unit) (Include bonuses)))))))


Set GreaterHeal = (GreaterHeal / 5.00)


Set CriticalStrikeCalculator = (Random integer number between 1 and 100)


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Level of Focus for (Triggering unit)) Greater than 0



Then - Actions




Set GreaterHeal = (GreaterHeal x ((Real((Level of Focus for (Triggering unit)))) x 1.03))




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






(Random integer number between 1 and 100) Less than or equal to (5 + (5 x (Level of Focus for (Triggering unit))))





Then - Actions






Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + ((Max mana of (Triggering unit)) x (0.05 x (Real((Level of Focus for (Triggering unit)))))))






Special Effect - Create a special effect at Loc[1] using Abilities\Spells\Items\AIma\AImaTarget.mdl






Special Effect - Destroy (Last created special effect)






Floating Text - Create floating text that reads (String((Integer((((Mana of (Triggering unit)) x 0.05) x (Real((Level of Focus for (Triggering unit))))))))) above (Triggering unit) with Z offset 70.00, using font size 10.00, color (0.00%, 0.00%, 100.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds





Else - Actions



Else - Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




((Target unit of ability being cast) is in (Units in (Playable map area) matching (((Matching unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True))) Equal to True



Then - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






CriticalStrikeCalculator Less than or equal to (15 + (1 x ((Intelligence of (Casting unit) (Include bonuses)) / 5)))





Then - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + (GreaterHeal x 2.00))






Floating Text - Create floating text that reads (String((Integer((GreaterHeal x 2.00))))) above (Target unit of ability being cast) with Z offset 0.00, using font size 15.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Triggering unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in Group and do (Actions)









Loop - Actions










If (All Conditions are True) then do (Then Actions) else do (Else Actions)











If - Conditions












(Picked unit) Equal to (Triggering unit)











Then - Actions












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x ((0.15 x (Real((Level of Holy Excess for (Triggering unit))))) x 2.00)))












Special Effect - Create a special effect at Loc[1] using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl












Special Effect - Destroy (Last created special effect)












Floating Text - Create floating text that reads (String((Integer((GreaterHeal x (0.15 x ((Real((Level of Holy Excess for (Triggering unit)))) x 2.00))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds











Else - Actions












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x ((0.10 x (Real((Level of Holy Excess for (Triggering unit))))) x 2.00)))












Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl












Special Effect - Destroy (Last created special effect)












Floating Text - Create floating text that reads (String((Integer((GreaterHeal x (0.10 x ((Real((Level of Holy Excess for (Triggering unit)))) x 2.00))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds








Custom script: call DestroyGroup (udg_Group)







Else - Actions





Else - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + GreaterHeal)






Floating Text - Create floating text that reads (String((Integer(GreaterHeal)))) above (Target unit of ability being cast) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Triggering unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in Group and do (Actions)









Loop - Actions










If (All Conditions are True) then do (Then Actions) else do (Else Actions)











If - Conditions












(Picked unit) Equal to (Triggering unit)











Then - Actions












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x (0.15 x (Real((Level of Holy Excess for (Triggering unit)))))))












Special Effect - Create a special effect at Loc[1] using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl












Special Effect - Destroy (Last created special effect)












Floating Text - Create floating text that reads (String((Integer((GreaterHeal x (0.15 x (Real((Level of Holy Excess for (Triggering unit)))))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds











Else - Actions












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))












Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl












Special Effect - Destroy (Last created special effect)












Floating Text - Create floating text that reads (String((Integer((GreaterHeal x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds








Custom script: call DestroyGroup (udg_Group)







Else - Actions



Else - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






CriticalStrikeCalculator Less than or equal to (15 + (1 x ((Intelligence of (Casting unit) (Include bonuses)) / 5)))





Then - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - GreaterHeal)






Floating Text - Create floating text that reads (String((Integer(GreaterHeal)))) above (Target unit of ability being cast) with Z offset 0.00, using font size 15.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Triggering unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in Group and do (Actions)









Loop - Actions










Unit - Set life of (Triggering unit) to ((Life of (Picked unit)) - (GreaterHeal x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))










Floating Text - Create floating text that reads (String((Integer((GreaterHeal x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency










Floating Text - Change (Last created floating text): Disable permanence










Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds








Custom script: call DestroyGroup (udg_Group)







Else - Actions





Else - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - (GreaterHeal / 2.00))






Floating Text - Create floating text that reads (String((Integer((GreaterHeal / 2.00))))) above (Target unit of ability being cast) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Triggering unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in Group and do (Actions)









Loop - Actions










Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - ((GreaterHeal / 2.00) x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))










Floating Text - Create floating text that reads (String((Integer(((GreaterHeal / 2.00) x (0.10 x (Real((Level of Holy Excess for (Triggering unit)))))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency










Floating Text - Change (Last created floating text): Disable permanence










Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds








Custom script: call DestroyGroup (udg_Group)







Else - Actions


Custom script: call RemoveLocation (udg_Loc[1])


Custom script: call RemoveLocation (udg_Loc[2])
Greater Heal

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Greater Heal


((Target unit of ability being cast) is alive) Equal to True

Actions


Set Loc[1] = (Position of (Triggering unit))


Set Loc[2] = (Position of (Target unit of ability being cast))


Set Group = (Units within 800.00 of Loc[2] matching (((Matching unit) Not equal to (Target unit of ability being cast)) and ((((Matching unit) is alive) Equal to True) and ((Owner of (Matching unit)) Equal to (Owner of (Target unit of ability being cast))))))


Set GreaterHeal = ((300.00 + (Real((Random integer number between 1 and 50)))) + (15.00 x ((Real((Level of Greater Heal for (Triggering unit)))) + (Real((Intelligence of (Triggering unit) (Include bonuses)))))))


Set CriticalStrikeCalculator = (Random integer number between 1 and 100)


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Level of Focus for (Triggering unit)) Greater than 0



Then - Actions




Set GreaterHeal = (GreaterHeal x ((Real((Level of Focus for (Triggering unit)))) x 1.05))




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






(Random integer number between 1 and 100) Less than or equal to (5 + (5 x (Level of Focus for (Triggering unit))))





Then - Actions






Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + ((Max mana of (Triggering unit)) x (0.05 x (Real((Level of Focus for (Triggering unit)))))))






Special Effect - Create a special effect at Loc[1] using Abilities\Spells\Items\AIma\AImaTarget.mdl






Special Effect - Destroy (Last created special effect)






Floating Text - Create floating text that reads (String(((Max mana of (Triggering unit)) x (0.05 x (Real((Level of Focus for (Triggering unit)))))))) above (Triggering unit) with Z offset 70.00, using font size 10.00, color (0.00%, 0.00%, 100.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds





Else - Actions



Else - Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




((Target unit of ability being cast) is in (Units in (Playable map area) matching (((Matching unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True))) Equal to True



Then - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






CriticalStrikeCalculator Less than or equal to (15 + (1 x ((Intelligence of (Casting unit) (Include bonuses)) / 5)))





Then - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + (GreaterHeal x 2.00))






Floating Text - Create floating text that reads (String((GreaterHeal x 2.00))) above (Target unit of ability being cast) with Z offset 0.00, using font size 15.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Triggering unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in Group and do (Actions)









Loop - Actions










If (All Conditions are True) then do (Then Actions) else do (Else Actions)











If - Conditions












(Picked unit) Equal to (Triggering unit)











Then - Actions












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x ((0.40 x (Real((Level of Holy Excess for (Triggering unit))))) x 2.00)))












Special Effect - Create a special effect at Loc[1] using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl












Special Effect - Destroy (Last created special effect)












Floating Text - Create floating text that reads (String(((GreaterHeal x (0.40 x (Real((Level of Holy Excess for (Triggering unit)))))) x 2.00))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds











Else - Actions












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x ((0.20 x (Real((Level of Holy Excess for (Triggering unit))))) x 2.00)))












Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl












Special Effect - Destroy (Last created special effect)












Floating Text - Create floating text that reads (String(((GreaterHeal x (0.20 x (Real((Level of Holy Excess for (Triggering unit)))))) x 2.00))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds








Custom script: call DestroyGroup (udg_Group)







Else - Actions





Else - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + GreaterHeal)






Floating Text - Create floating text that reads (String(GreaterHeal)) above (Target unit of ability being cast) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Triggering unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in Group and do (Actions)









Loop - Actions










If (All Conditions are True) then do (Then Actions) else do (Else Actions)











If - Conditions












(Picked unit) Equal to (Triggering unit)











Then - Actions












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x (0.40 x (Real((Level of Holy Excess for (Triggering unit)))))))












Special Effect - Create a special effect at Loc[1] using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl












Special Effect - Destroy (Last created special effect)












Floating Text - Create floating text that reads (String((GreaterHeal x (0.40 x (Real((Level of Holy Excess for (Triggering unit)))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds











Else - Actions












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x (0.20 x (Real((Level of Holy Excess for (Triggering unit)))))))












Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl












Special Effect - Destroy (Last created special effect)












Floating Text - Create floating text that reads (String((GreaterHeal x (0.20 x (Real((Level of Holy Excess for (Triggering unit)))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds








Custom script: call DestroyGroup (udg_Group)







Else - Actions



Else - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






CriticalStrikeCalculator Less than or equal to (15 + (1 x ((Intelligence of (Casting unit) (Include bonuses)) / 5)))





Then - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - (GreaterHeal / 3.00))






Floating Text - Create floating text that reads (String((GreaterHeal / 3.00))) above (Target unit of ability being cast) with Z offset 0.00, using font size 15.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Triggering unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in Group and do (Actions)









Loop - Actions










Unit - Set life of (Triggering unit) to ((Life of (Picked unit)) - ((GreaterHeal / 3.00) x (0.20 x (Real((Level of Holy Excess for (Triggering unit)))))))










Floating Text - Create floating text that reads (String(((GreaterHeal / 3.00) x (0.20 x (Real((Level of Holy Excess for (Triggering unit)))))))) above (Picked unit) with Z offset 0.00, using font size 7.50, color (100.00%, 0.00%, 0.00%), and 0.00% transparency










Floating Text - Change (Last created floating text): Disable permanence










Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds








Custom script: call DestroyGroup (udg_Group)







Else - Actions





Else - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - (GreaterHeal / 6.00))






Floating Text - Create floating text that reads (String((GreaterHeal / 6.00))) above (Target unit of ability being cast) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Triggering unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in Group and do (Actions)









Loop - Actions










Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - ((GreaterHeal / 6.00) x (0.20 x (Real((Level of Holy Excess for (Triggering unit)))))))










Floating Text - Create floating text that reads (String(((GreaterHeal / 6.00) x (0.20 x (Real((Level of Holy Excess for (Triggering unit)))))))) above (Picked unit) with Z offset 0.00, using font size 5.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency










Floating Text - Change (Last created floating text): Disable permanence










Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds








Custom script: call DestroyGroup (udg_Group)







Else - Actions


Custom script: call RemoveLocation (udg_Loc[1])


Custom script: call RemoveLocation (udg_Loc[2])
Greater Heal

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Greater Heal

Actions


Set GreaterHeal = ((300.00 + (Real((Random integer number between 1 and 50)))) + (15.00 x ((Real((Level of Greater Heal for (Casting unit)))) + (Real((Intelligence of (Casting unit) (Include bonuses)))))))


Set CriticalStrikeCalculator = (Random integer number between 1 and 100)


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Level of Focus for (Casting unit)) Greater than 0



Then - Actions




Set GreaterHeal = (GreaterHeal x ((Real((Level of Focus for (Triggering unit)))) x 1.05))




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






(Random integer number between 1 and 100) Less than or equal to (5 + (5 x (Level of Focus for (Casting unit))))





Then - Actions






Unit - Set mana of (Casting unit) to ((Mana of (Casting unit)) + ((Max mana of (Casting unit)) x (0.05 x (Real((Level of Focus for (Casting unit)))))))






Special Effect - Create a special effect at (Position of (Casting unit)) using Abilities\Spells\Items\AIma\AImaTarget.mdl






Floating Text - Create floating text that reads (String(((Max mana of (Casting unit)) x (0.05 x (Real((Level of Focus for (Casting unit)))))))) above (Casting unit) with Z offset 70.00, using font size 10.00, color (0.00%, 0.00%, 100.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds





Else - Actions






Do nothing



Else - Actions




Do nothing


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




((Target unit of ability being cast) is in (Units in (Playable map area) matching (((Target unit of ability being cast) belongs to an ally of (Owner of (Casting unit))) Equal to True))) Equal to True



Then - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






CriticalStrikeCalculator Less than or equal to (15 + (1 x ((Intelligence of (Casting unit) (Include bonuses)) / 5)))





Then - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + (GreaterHeal x 2.00))






Floating Text - Create floating text that reads (String((GreaterHeal x 2.00))) above (Target unit of ability being cast) with Z offset 0.00, using font size 15.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Casting unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in (Units within 800.00 of (Position of (Target unit of ability being cast)) matching (((Matching unit) Not equal to (Target unit of ability being cast)) and (((Owner of (Matching unit)) is an ally of (Owner of (Casting unit))) Equal to True))) and do (Actions)









Loop - Actions










If (All Conditions are True) then do (Then Actions) else do (Else Actions)











If - Conditions












(Picked unit) Equal to (Casting unit)











Then - Actions












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x ((0.40 x (Real((Level of Holy Excess for (Casting unit))))) x 2.00)))












Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl












Floating Text - Create floating text that reads (String(((GreaterHeal x (0.40 x (Real((Level of Holy Excess for (Casting unit)))))) x 2.00))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds











Else - Actions












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x ((0.20 x (Real((Level of Holy Excess for (Casting unit))))) x 2.00)))












Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl












Floating Text - Create floating text that reads (String(((GreaterHeal x (0.20 x (Real((Level of Holy Excess for (Casting unit)))))) x 2.00))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds







Else - Actions








Do nothing





Else - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + GreaterHeal)






Floating Text - Create floating text that reads (String(GreaterHeal)) above (Target unit of ability being cast) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Casting unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in (Units within 800.00 of (Position of (Target unit of ability being cast)) matching (((Matching unit) Not equal to (Target unit of ability being cast)) and (((Owner of (Matching unit)) is an ally of (Owner of (Casting unit))) Equal to True))) and do (Actions)









Loop - Actions










If (All Conditions are True) then do (Then Actions) else do (Else Actions)











If - Conditions












(Picked unit) Equal to (Casting unit)











Then - Actions












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x (0.40 x (Real((Level of Holy Excess for (Casting unit)))))))












Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl












Floating Text - Create floating text that reads (String((GreaterHeal x (0.40 x (Real((Level of Holy Excess for (Casting unit)))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds











Else - Actions












Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (GreaterHeal x (0.20 x (Real((Level of Holy Excess for (Casting unit)))))))












Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Orc\HealingWave\HealingWaveTarget.mdl












Floating Text - Create floating text that reads (String((GreaterHeal x (0.20 x (Real((Level of Holy Excess for (Casting unit)))))))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency












Floating Text - Change (Last created floating text): Disable permanence












Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds







Else - Actions








Do nothing



Else - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






CriticalStrikeCalculator Less than or equal to (15 + (1 x ((Intelligence of (Casting unit) (Include bonuses)) / 5)))





Then - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - (GreaterHeal / 3.00))






Floating Text - Create floating text that reads (String((GreaterHeal / 3.00))) above (Target unit of ability being cast) with Z offset 0.00, using font size 15.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Casting unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in (Units within 300.00 of (Position of (Target unit of ability being cast)) matching (((Owner of (Matching unit)) is an ally of (Owner of (Target unit of ability being cast))) Equal to True)) and do (Actions)









Loop - Actions










Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - ((GreaterHeal / 3.00) x (0.20 x (Real((Level of Holy Excess for (Casting unit)))))))










Floating Text - Create floating text that reads (String(((GreaterHeal / 3.00) x (0.20 x (Real((Level of Holy Excess for (Casting unit)))))))) above (Picked unit) with Z offset 0.00, using font size 7.50, color (100.00%, 0.00%, 0.00%), and 0.00% transparency










Floating Text - Change (Last created floating text): Disable permanence










Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds







Else - Actions








Do nothing





Else - Actions






Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - (GreaterHeal / 6.00))






Floating Text - Create floating text that reads (String((GreaterHeal / 6.00))) above (Target unit of ability being cast) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency






Floating Text - Change (Last created floating text): Disable permanence






Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds






If (All Conditions are True) then do (Then Actions) else do (Else Actions)







If - Conditions








(Level of Holy Excess for (Casting unit)) Greater than or equal to 1







Then - Actions








Unit Group - Pick every unit in (Units within 300.00 of (Position of (Target unit of ability being cast)) matching (((Owner of (Matching unit)) is an ally of (Owner of (Target unit of ability being cast))) Equal to True)) and do (Actions)









Loop - Actions










Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - ((GreaterHeal / 6.00) x (0.20 x (Real((Level of Holy Excess for (Casting unit)))))))










Floating Text - Create floating text that reads (String(((GreaterHeal / 6.00) x (0.20 x (Real((Level of Holy Excess for (Casting unit)))))))) above (Picked unit) with Z offset 0.00, using font size 5.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency










Floating Text - Change (Last created floating text): Disable permanence










Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds







Else - Actions








Do nothing