PrayerofAmelioration.lua 714 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : Spells/Priest/Cleric/PrayerofAmelioration.lua
  3. Script Author : LordPazuzu
  4. Script Date : 1/3/2023
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Heals group members (AE) for 97 - 119
  9. function cast(Caster, Target, MinVal, MaxVal, SpellLevel)
  10. Level = GetLevel(Caster)
  11. Mastery = SpellLevel + 10
  12. StatBonus = GetWis(Caster) / 10
  13. if Level < Mastery then
  14. LvlBonus = Level - SpellLevel
  15. else LvlBonus = Mastery - SpellLevel
  16. end
  17. HealBonus = LvlBonus + StatBonus
  18. MinHeal = math.floor(HealBonus) * 2 + MinVal
  19. MaxHeal = math.floor(HealBonus) * 2 + MaxVal
  20. SpellHeal("Heal", MinHeal, MaxHeal)
  21. end