SootheServant.lua 670 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : Spells/Mage/Summoner/SootheServant.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2-18-2023
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Heals target for 85
  9. function cast(Caster, Target, Min)
  10. Pet = GetPet(Caster)
  11. Level = GetLevel(Caster)
  12. SpellLevel = 14
  13. Mastery = SpellLevel + 10
  14. StatBonus = GetWis(Caster) / 10
  15. if Level < Mastery then
  16. LvlBonus = Level - SpellLevel
  17. else LvlBonus = Mastery - SpellLevel
  18. end
  19. HealBonus = LvlBonus * 2 + StatBonus
  20. HealMin = Min + math.floor(HealBonus)
  21. SpellHeal("Heal", HealMin, HealMin, Pet)
  22. end