HealingRitual.lua 735 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : Spells/Priest/Shaman/HealingRitual.lua
  3. Script Author : neatz09
  4. Script Date : 2019.12.14 02:12:03
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, MinVal, MaxVal)
  9. Level = GetLevel(Caster)
  10. SpellLevel= 18
  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 = math.floor(LvlBonus + StatBonus) * 2
  18. MinHeal = MinVal + HealBonus
  19. MaxHeal = MaxVal + HealBonus
  20. SpellHeal("Heal", MinHeal, MaxHeal)
  21. end
  22. function remove(Caster, Target)
  23. RemoveSpellBonus(Target)
  24. end