Bodyguard.lua 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : Spells/Fighter/Brawler/Bruiser/Bodyguard.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.03.10 09:03:09
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, PhyDmg, Avoid, Deflect, Parry, OffSkill, Agg, DefSkill, NoxMit, Armor)
  9. -- Reduces physical damage done to caster by 5%
  10. -- AddSpellBonus(Target, 600, PhyDmg)
  11. Say(Caster, "Not Implemented: physical damage reduction")
  12. -- Adds 1.3% to base avoidance.
  13. AddSpellBonus(Target, 696, Avoid)
  14. -- Caster will deflect 9.0% of incoming attacks.
  15. AddSpellBonus(Target, 670, Deflect)
  16. -- Increases Parry of caster by 1.6
  17. AddSkillBonus(Target, GetSkillIDByName("Parry"), Parry)
  18. -- Decreases Crushing, Piercing and Slashing of caster by 1.8
  19. AddSkillBonus(Target, GetSkillIDByName("Crushing"), OffSkill)
  20. AddSkillBonus(Target, GetSkillIDByName("Piercing"), OffSkill)
  21. AddSkillBonus(Target, GetSkillIDByName("Slashing"), OffSkill)
  22. -- Increases Aggression of caster by 1.2
  23. AddSkillBonus(Target, GetSkillIDByName("Aggression"), Agg)
  24. -- Increases Deflection and Defense of caster by 1.6
  25. AddSkillBonus(Target, GetSkillIDByName("Deflection"), DefSkill)
  26. AddSkillBonus(Target, GetSkillIDByName("Defense"), DefSkill)
  27. -- Increases Mitigation of caster vs noxious damage by 138
  28. AddSpellBonus(Target, 202, NoxMit)
  29. -- Increases the caster's effectiveness of worn armor vs physical damage by 25%
  30. AddSpellBonus(Target, 678, Armor)
  31. end
  32. function remove(Caster, Target)
  33. RemoveSpellBonus(Target)
  34. RemoveSkillBonus(Target)
  35. end