9
3

CombatHealing.lua 764 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : Spells/Priest/Cleric/CombatHealing.lua
  3. Script Author : LordPazuzu
  4. Script Date : 12/18/2022
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Heals target for 91 - 111
  9. function cast(Caster, Target, MinVal, MaxVal)
  10. Level = GetLevel(Caster)
  11. SpellLevel = 16
  12. Mastery = SpellLevel + 10
  13. StatBonus = GetWis(Caster) / 10
  14. if Level < Mastery then
  15. LvlBonus = Level - SpellLevel
  16. else LvlBonus = Mastery - SpellLevel
  17. end
  18. HealBonus = LvlBonus + StatBonus
  19. MinHeal = math.floor(HealBonus) * 2 + MinVal
  20. MaxHeal = math.floor(HealBonus) * 2 + MaxVal
  21. SpellHeal("Heal", MinHeal, MaxHeal)
  22. Say(Caster, "Offensive buff not implemented.")
  23. end