StaggeringStance.lua 806 B

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : Spells/Fighter/Brawler/StaggeringStance.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.09.29 05:09:28
  5. Script Purpose :
  6. :
  7. --]]
  8. --Note: Need to replace deflection with agility
  9. function cast(Caster, Target, Chance, Agi)
  10. Level = GetLevel(Caster)
  11. SpellLevel = 18
  12. Mastery = SpellLevel + 10
  13. if Level < Mastery then
  14. LvlBonus = Level - SpellLevel
  15. else LvlBonus = Mastery - SpellLevel
  16. end
  17. TotalAgi= LvlBonus * .5 + Agi
  18. AddSpellBonus(Caster, 2, TotalAgi)
  19. --AddProc(Target, 4, Chance)
  20. end
  21. function proc(Caster, Target, Type)
  22. Say(Caster, "Avoidance buff not implemented.")
  23. end
  24. function remove(Caster, Target)
  25. RemoveSkillBonus(Caster)
  26. end