StanceKnightsStance.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. --[[
  2. Script Name : Spells/Fighter/Crusader/StanceKnightsStance.lua
  3. Script Author : LordPazuzu
  4. Script Date : 3/17/2023
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, Wis, OffSkill, DefSkill, ArmorBlock)
  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. Bonus = LvlBonus * 0.2
  17. --WisBonus = Wis + Bonus
  18. OffBonus = OffSkill + Bonus
  19. DefBonus = DefSkill + Bonus
  20. --AddSpellBonus(Caster, 3, WisBonus)
  21. --AddSpellBonus(Caster, 678, ArmorBlock)
  22. AddSpellBonus(Caster, 651, ArmorBlock)
  23. AddSkillBonus(Caster, GetSkillIDByName("Slashing"), OffBonus)
  24. AddSkillBonus(Caster, GetSkillIDByName("Piercing"), OffBonus)
  25. AddSkillBonus(Caster, GetSkillIDByName("Crushing"), OffBonus)
  26. AddSkillBonus(Caster, GetSkillIDByName("Defense"), DefBonus)
  27. end
  28. function remove(Caster, Target)
  29. RemoveSpellBonus(Caster)
  30. RemoveSkillBonus(Caster)
  31. end