SylvanTouch.lua 632 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : Spells/Priest/Druid/SylvanTouch.lua
  3. Script Author : LordPazuzu
  4. Script Date : 3/18/2023
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target)
  9. Level = GetLevel(Caster)
  10. StatBonus = GetWis(Caster) / 5
  11. BaseHeal = Level * 9.5
  12. TotalHeal = math.floor(BaseHeal + StatBonus)
  13. SpellHeal("Heal", TotalHeal, TotalHeal)
  14. end
  15. function tick(Caster, Target)
  16. Level = GetLevel(Caster)
  17. StatBonus = GetWis(Caster) / 10
  18. BaseTick = Level * 2.5
  19. TotalTick = math.floor(BaseTick + StatBonus)
  20. SpellHeal("Heal", TotalTick, TotalTick)
  21. end