9
3

WildSpirit.lua 797 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : Spells/Priest/Druid/WildSpirit.lua
  3. Script Author : LordPazuzu
  4. Script Date : 3/20/2023
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, Agi, Arcane)
  9. Level = GetLevel(Caster)
  10. SpellLevel = 17
  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. AgiBonus = LvlBonus * 0.1
  18. ArcaneBonus = LvlBonus + StatBonus
  19. TotalAgi = Agi + AgiBonus
  20. TotalArcane = Arcane + ArcaneBonus
  21. AddSpellBonus(Target, 2, TotalAgi)
  22. AddSpellBonus(Target, 203, TotalArcane)
  23. end
  24. function remove(Caster, Target)
  25. RemoveSpellBonus(Target)
  26. end