Armored.lua 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : Armored
  3. Script Purpose : Guardian Defensive Stance script
  4. Script Author : Zcoretri
  5. Script Date : 2010.01.26
  6. Script Note : Need "worn armor" effectiveness
  7. --]]
  8. function cast(Caster, Target, Physical, Avoidance, SkillAmt, Aggression, Defense, MitNox, MitElem, WornArmor)
  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(Caster, 418532101, SkillAmt) -- slashing
  15. AddSkillBonus(Caster, 3421494576, SkillAmt) -- crushing
  16. AddSkillBonus(Caster, 3048574950, SkillAmt) -- piercing
  17. AddSkillBonus(Caster, 723762198, Aggression)-- aggression
  18. AddSkillBonus(Caster, 609880714, Defense) -- defense
  19. -- Increases the caster's effectiveness of worn armor vs physical damage by 15%
  20. -- TODO
  21. end
  22. function remove(Caster, Target)
  23. RemoveSkillBonus(Caster)
  24. RemoveSpellBonus(Caster)
  25. end