StanceToughness.lua 916 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : Spells/Fighter/StanceToughness.lua
  3. Script Author : neatz09
  4. Script Date : 2020.11.03 03:11:34
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Decreases Slashing, Crushing and Piercing of caster by 1.8
  9. -- Increases Defense and Parry of caster by 1.6
  10. -- Increases the caster's effectiveness of worn armor vs physical damage by 10%
  11. function cast(Caster, Target, OffSkills, DefSkills, Armor)
  12. AddSkillBonus(Target, GetSkillIDByName("Slashing"), OffSkills)
  13. AddSkillBonus(Target, GetSkillIDByName("Crushing"), OffSkills)
  14. AddSkillBonus(Target, GetSkillIDByName("Piercing"), OffSkills)
  15. AddSkillBonus(Target, GetSkillIDByName("Defense"), DefSkills)
  16. AddSkillBonus(Target, GetSkillIDByName("Parry"), DefSkills)
  17. AddSpellBonus(Target, 678, Armor)
  18. end
  19. function remove(Caster, Target)
  20. RemoveSkillBonus(Target)
  21. RemoveSpellBonus(Target)
  22. end