9
3

CrouchingTiger.lua 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --[[
  2. Script Name : Spells/Fighter/Brawler/Monk/CrouchingTiger.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.01.12 04:01:06
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, Avoid, Deflect, DefSkills, OffSkills, Agg, ArcaneMit, Armor)
  9. -- Reduces physical damage done to caster by 5%
  10. AddSpellBonus(Target, 313, 5) -- Not sure on the stat
  11. -- Adds 1.3% to base avoidance.
  12. AddSpellBonus(Target, 696, Avoid)
  13. -- Caster will deflect 9.0% of incoming attacks.
  14. AddSpellBonus(Target, 670, Deflect) -- Not sure about the stat
  15. -- Increases Parry of caster by 1.6
  16. -- Increases Deflection and Defense of caster by 1.6
  17. AddSkillBonus(Target, GetSkillIDByName("Parry"), DefSkills)
  18. AddSkillBonus(Target, GetSkillIDByName("Deflection"), DefSkills)
  19. AddSkillBonus(Target, GetSkillIDByName("Defense"), DefSkills)
  20. -- Decreases Crushing, Piercing and Slashing of caster by 1.8
  21. AddSkillBonus(Target, GetSkillIDByName("Crushing"), OffSkills)
  22. AddSkillBonus(Target, GetSkillIDByName("Piercing"), OffSkills)
  23. AddSkillBonus(Target, GetSkillIDByName("Slashing"), OffSkills)
  24. -- Increases Aggression of caster by 1.0
  25. AddSkillBonus(Target, GetSkillIDByName("Aggression"), Agg)
  26. -- Increases Mitigation of caster vs arcane damage by 138
  27. AddSpellBonus(Target, 203, ArcaneMit)
  28. -- Increases the caster's effectiveness of worn armor vs physical damage by 25%
  29. AddSpellBonus(Target, 678, Armor)
  30. end
  31. function remove(Caster, Target)
  32. RemoveSpellBonus(Target)
  33. RemoveSkillBonus(Target)
  34. end