9
3

HunkerDown.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. --[[
  2. Script Name : Spells/Fighter/Warrior/Guardian/HunkerDown.lua
  3. Script Author : John Adams
  4. Script Date : 2013.12.08 03:12:51
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, MitAmt)
  9. -- Decreases Attack Speed of caster by 11.3
  10. AddSpellBonus(Caster, 617, -11.3)
  11. -- Increases Mitigation of caster vs physical damage by 133
  12. AddSpellBonus(Caster, 200, MitAmt)
  13. AddProc(Target, 1, 25)
  14. end
  15. function proc(Caster, Target, Type)
  16. -- On a melee hit this spell may cast Pin on target of attack. Lasts for 10.0 seconds. Triggers about 5.0 times per minute.
  17. -- Roots target
  18. AddSpellBonus(Target, 609, 0) -- set speed to 0, is rooting? :D
  19. -- 5% chance to dispel when target takes damage
  20. -- 5% chance to dispel when target receives hostile action
  21. -- Epic targets gain an immunity to Root and Will not multi-attack if the primary attack was avoided. effects of 30.0 seconds and duration is reduced to 3.3 seconds.
  22. end
  23. function remove(Caster, Target, MitAmt)
  24. RemoveSpellBonus(Caster)
  25. RemoveProc(Target)
  26. end