FancyFootwork.lua 613 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : Spells/Scout/Rogue/FancyFootwork.lua
  3. Script Author : LordPazuzu
  4. Script Date : 1/3/2023
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, Parry)
  9. Level = GetLevel(Caster)
  10. SpellLevel = 18
  11. Mastery = SpellLevel + 4
  12. if Level < Mastery then
  13. LvlBonus = Level - SpellLevel
  14. else LvlBonus = Mastery - SpellLevel
  15. end
  16. ParryMod = LvlBonus + Parry
  17. AddSkillBonus(Target, GetSkillIDByName("Parry"), ParryMod)
  18. end
  19. function remove(Caster, Target)
  20. RemoveSkillBonus(Target)
  21. end