UnflinchingWill.lua 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : Spells/Fighter/Warrior/Berserker/UnflinchingWill.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.11 05:10:36
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, OffSkillAmt, Agro, DefSkillAmt, MitAmt)
  9. -- Reduces physical damage done to caster by 5%
  10. AddSpellBonus(Target, 313, 5) -- Not sure on this value (313)
  11. -- Decreases Crushing, Piercing and Slashing of caster by 1.6
  12. AddSkillBonus(Target, GetSkillIDByName("Crushing"), OffSkillAmt)
  13. AddSkillBonus(Target, GetSkillIDByName("Piercing"), OffSkillAmt)
  14. AddSkillBonus(Target, GetSkillIDByName("Slashing"), OffSkillAmt)
  15. -- Increases Agression of caster by 0.8
  16. AddSkillBonus(Target, GetSkillIDByName("Aggression"), Agro)
  17. -- Increases Defense and Parry of caster by 1.6
  18. AddSkillBonus(Target, GetSkillIDByName("Defense"), DefSkillAmt)
  19. AddSkillBonus(Target, GetSkillIDByName("Parry"), DefSkillAmt)
  20. -- Increases Mitigation of caster vs Elemental damage by 138
  21. AddSpellBonus(Target, 201, ResistAmt)
  22. -- Increases the caster's effectiveness of worn armor vs physical damage by 15%
  23. AddSpellBonus(Target, 678, 15)
  24. end
  25. function remove(Caster, Target)
  26. RemoveSpellBonus(Target)
  27. RemoveSkillBonus(Target)
  28. end