Regrowth.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --[[
  2. Script Name : Spells/Priest/Druid/Regrowth.lua
  3. Script Author : neatz09
  4. Script Date : 2020.01.02 06:01:11
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Heals target for 34 - 42 instantly and every 2 seconds
  9. function cast(Caster, Target, MinVal, MaxVal)
  10. Level = GetLevel(Caster)
  11. SpellLevel = 12
  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. end
  23. function tick(Caster, Target, MinVal, MaxVal)
  24. Level = GetLevel(Caster)
  25. SpellLevel = 12
  26. Mastery = SpellLevel + 10
  27. StatBonus = GetWis(Caster) / 10
  28. if Level < Mastery then
  29. LvlBonus = Level - SpellLevel
  30. else LvlBonus = Mastery - SpellLevel
  31. end
  32. HealBonus = LvlBonus + StatBonus
  33. MinHeal = math.floor(HealBonus) * 2 + MinVal
  34. MaxHeal = math.floor(HealBonus) * 2 + MaxVal
  35. SpellHeal("Heal", MinHeal, MaxHeal)
  36. end