Auspice.lua 757 B

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : Spells/Priest/Shaman/Auspice.lua
  3. Script Author : LordPazuzu
  4. Script Date : 3/14/2024
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, Power, Health)
  9. Level = GetLevel(Caster)
  10. SpellLevel = 16
  11. Mastery = SpellLevel + 10
  12. StatBonus = GetWis(Caster) / 10
  13. if Level < Mastery then
  14. LvlBonus = Level - SpellLevel
  15. else LvlBonus = Mastery - SpellLevel
  16. end
  17. Bonus = math.floor(StatBonus + LvlBonus)/2
  18. TotalPower = Power + Bonus
  19. TotalHP = Health + Bonus
  20. AddSpellBonus(Target, 619, TotalPower)
  21. AddSpellBonus(Target, 606, TotalHP)
  22. end
  23. function remove(Caster, Target)
  24. RemoveSpellBonus(Target)
  25. end