Bloom.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : Spells/Priest/Druid/Bloom.lua
  3. Script Author : neatz09
  4. Script Date : 2020.11.05 03:11:49
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Heals target for 55 - 67
  9. -- Heals target for 9 - 11 every second
  10. function cast(Caster, Target, MinVal, MaxVal, TickMin, TickMax)
  11. Level = GetLevel(Caster)
  12. SpellLevel = 13
  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, TickMin, TickMax)
  25. Level = GetLevel(Caster)
  26. SpellLevel = 13
  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