9
3

Effloresce.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : Spells/Priest/Druid/Effloresce.lua
  3. Script Author : LordPazuzu
  4. Script Date : 3/28/2023
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Heals target for 102 - 125
  9. -- Heals target for 13 - 16 every second
  10. function cast(Caster, Target, MinVal, MaxVal, HoTMin, HoTMax)
  11. Level = GetLevel(Caster)
  12. SpellLevel= 17
  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 + StatBonus
  20. MinHeal = math.floor(HealBonus) * 2 + MinVal
  21. MaxHeal = math.floor(HealBonus) * 2 + MaxVal
  22. SpellHeal("Heal", MinHeal, MaxHeal)
  23. end
  24. function tick(Caster, Target, MinVal, MaxVal, HoTMin, HoTMax)
  25. Level = GetLevel(Caster)
  26. SpellLevel= 17
  27. Mastery = SpellLevel + 10
  28. StatBonus = GetWis(Caster) / 10
  29. if Level < Mastery then
  30. LvlBonus = Level - SpellLevel
  31. else LvlBonus = Mastery - SpellLevel
  32. end
  33. HealBonus = LvlBonus + StatBonus
  34. MinHoT = math.floor(HealBonus) * 2 + HoTMin
  35. MaxHoT = math.floor(HealBonus) * 2 + HoTMax
  36. SpellHeal("Heal", MinHoT, MaxHoT)
  37. end