9
3

Caltrops.lua 874 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : Spells/Scout/Predator/Assassin/Caltrops.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.04.17 04:04:10
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, Snare, Resist)
  9. -- Applies Snare. Lasts for 24.0 seconds.
  10. -- Slows target by 28.3%
  11. SetSpellSnareValue(Snare)
  12. AddControlEffect(Target, 11)
  13. -- 5% chance to dispel when target receives hostile action
  14. -- 5% chance to dispel when target takes damage
  15. AddProc(Target, 2, 5)
  16. -- Decreases Mitigation of target vs noxious damage by 197
  17. AddSpellBonus(Target, 202, BonusAmt)
  18. end
  19. function proc(Caster, Target, Type)
  20. if Type == 2 then
  21. RemoveControlEffect(Target, 11)
  22. end
  23. end
  24. function remove(Caster, Target)
  25. RemoveControlEffect(Target, 11)
  26. RemoveSpellBonus(Target)
  27. RemoveProc(Target)
  28. end