StanceBrawlersStance.lua 928 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : Spells/Fighter/Brawler/StanceBrawlersStance.lua
  3. Script Author : LordPazuzu
  4. Script Date : 9/10/2023
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, Off, Def)
  9. Level = GetLevel(Caster)
  10. SpellLevel = 16
  11. Mastery = SpellLevel + 10
  12. if Level < Mastery then
  13. LvlBonus = Level - SpellLevel
  14. else LvlBonus = Mastery - SpellLevel
  15. end
  16. MasteryBonus = LvlBonus * 0.1
  17. DefBonus = Def + MasteryBonus
  18. AddSkillBonus(Target, GetSkillIDByName("Slashing"), Off)
  19. AddSkillBonus(Target, GetSkillIDByName("Piercing"), Off)
  20. AddSkillBonus(Target, GetSkillIDByName("Crushing"), Off)
  21. AddSkillBonus(Target, GetSkillIDByName("Defense"), DefBonus)
  22. AddSkillBonus(Target, GetSkillIDByName("Deflection"), DefBonus)
  23. end
  24. function remove(Caster, Target)
  25. RemoveSpellBonus(Target)
  26. end