9
3

PrayerofHealingpct.lua 911 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : Spells/Fighter/Crusader/Paladin/PrayerofHealingpct.lua
  3. Script Author : neatz09
  4. Script Date : 2019.11.09 06:11:06
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Heals group members (AE) for 6.9 - 8.5% of max health
  9. -- This effect cannot be critically applied.
  10. -- Increases Max Health of group members (AE) by 155.7
  11. -- The healing of this spell cannot be modified except by direct means
  12. function cast(Caster, Target, BonusAmt, HealMin, HealMax)
  13. local Val1 = HealMin
  14. local Val2 = HealMax
  15. local HealAmt = randomFloat(Val1, Val2)
  16. -- Increases Max Health of group members (AE) by 15.8
  17. AddSpellBonus(Target, 606, BonusAmt)
  18. SpellHealPct("Heal", HealAmt, false, true, 1, true)
  19. end
  20. function randomFloat(Val1, Val2)
  21. return Val1 + math.random() * (Val2 - Val1);
  22. end
  23. function remove(Caster, Target)
  24. RemoveSpellBonus(Target)
  25. end