MinorArchHealing.lua 684 B

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