PerformersTalent.lua 758 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : Spells/Scout/Bard/PerformersTalent.lua
  3. Script Author : LordPazuzu
  4. Script Date : 3/29/2024
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, Agi, Arcane)
  9. Level = GetLevel(Caster)
  10. SpellLevel = 13
  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 = (StatBonus + LvlBonus) * 0.2
  18. ArcaneBonus = (StatBonus + LvlBonus) * 2
  19. AddSpellBonus(Target, 2, Agi + AgiBonus)
  20. AddSpellBonus(Target, 203, Arcane + ArcaneBonus)
  21. end
  22. function remove(Caster, Target)
  23. RemoveSpellBonus(Target)
  24. end