SylvanWind.lua 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : Spells/Priest/Druid/SylvanWind.lua
  3. Script Author : LordPazuzu
  4. Script Date : 3/18/2023
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Heals group members (AE) for 61 - 74
  9. -- Heals group members (AE) for 10 - 12 every second
  10. function cast(Caster, Target, HealMin, HealMax, TickMin, TickMax)
  11. Level = GetLevel(Caster)
  12. SpellLevel = 16
  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 + HealMin
  21. MaxHeal = math.floor(HealBonus) * 2 + HealMax
  22. SpellHeal("Heal", MinHeal, MaxHeal)
  23. end
  24. function tick(Caster, Target, HealMin, HealMax, TickMin, TickMax)
  25. Level = GetLevel(Caster)
  26. SpellLevel = 16
  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. MinTick = math.floor(HealBonus) * 2 + TickMin
  35. MaxTick = math.floor(HealBonus) * 2 + TickMax
  36. SpellHeal("Heal", MinTick, MaxTick)
  37. end