Vigor.lua 686 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : Spells/Priest/Druid/Vigor.lua
  3. Script Author : LordPazuzu
  4. Script Date : 3/20/2023
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, Power)
  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. PowerBonus = LvlBonus + StatBonus
  18. TotalPower = Power + math.floor(PowerBonus)
  19. AddSpellBonus(Target, 501, TotalPower)
  20. end
  21. function remove(Caster, Target)
  22. RemoveSpellBonus(Target)
  23. end