Armored.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : Armored
  3. Script Purpose : Guardian Defensive Stance script
  4. Script Author : Zcoretri - rewriten by neatz09 10-29-19
  5. Script Date : 2010.01.26
  6. Script Note :
  7. --]]
  8. function cast(Caster, Target, Physical, Avoidance, SkillAmt, Aggro, Defense, MitNox, MitElem, Armor)
  9. AddSpellBonus(Caster, 200, Physical) -- physical
  10. AddSpellBonus(Caster, 696, Avoidance) -- avoidance
  11. AddSpellBonus(Caster, 202, MitNox) -- mitigation against noxious
  12. AddSpellBonus(Caster, 203, MitNox) -- mitigation against arcane
  13. AddSpellBonus(Caster, 201, MitElem) -- mitigation against elemental
  14. AddSkillBonus(Target, GetSkillIDByName("Slashing"), SkillAmt)
  15. AddSkillBonus(Target, GetSkillIDByName("Crushing"), SkillAmt)
  16. AddSkillBonus(Target, GetSkillIDByName("Piercing"), SkillAmt)
  17. AddSkillBonus(Target, GetSkillIDByName("Aggression"), Aggro)
  18. AddSkillBonus(Target, GetSkillIDByName("Defense"), Defense)
  19. AddSkillBonus(Target, GetSkillIDByName("Parry"), Defense)
  20. -- Increases the caster's effectiveness of worn armor vs physical damage by 25%
  21. AddSpellBonus(Target, 678, Armor)
  22. end
  23. function remove(Caster, Target)
  24. RemoveSkillBonus(Caster)
  25. RemoveSpellBonus(Caster)
  26. end