Armored.lua 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  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. Say(Caster, "physical reduction looks wrong")
  10. AddSpellBonus(Caster, 200, Physical) -- physical
  11. AddSpellBonus(Caster, 696, Avoidance) -- avoidance
  12. AddSpellBonus(Caster, 202, MitNox) -- mitigation against noxious
  13. AddSpellBonus(Caster, 203, MitNox) -- mitigation against arcane
  14. AddSpellBonus(Caster, 201, MitElem) -- mitigation against elemental
  15. AddSkillBonus(Target, GetSkillIDByName("Slashing"), SkillAmt)
  16. AddSkillBonus(Target, GetSkillIDByName("Crushing"), SkillAmt)
  17. AddSkillBonus(Target, GetSkillIDByName("Piercing"), SkillAmt)
  18. AddSkillBonus(Target, GetSkillIDByName("Aggression"), Aggro)
  19. AddSkillBonus(Target, GetSkillIDByName("Defense"), Defense)
  20. AddSkillBonus(Target, GetSkillIDByName("Parry"), Defense)
  21. -- Increases the caster's effectiveness of worn armor vs physical damage by 25%
  22. AddSpellBonus(Target, 678, Armor)
  23. end
  24. function remove(Caster, Target)
  25. RemoveSkillBonus(Caster)
  26. RemoveSpellBonus(Caster)
  27. end