Caltrops.lua 960 B

12345678910111213141516171819202122232425262728293031323334
  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. Say(Caster, "Snare should be a seperate spell")
  14. -- 5% chance to dispel when target receives hostile action
  15. -- 5% chance to dispel when target takes damage
  16. AddProc(Target, 2, 5)
  17. -- Decreases Mitigation of target vs noxious damage by 197
  18. AddSpellBonus(Target, 202, BonusAmt)
  19. end
  20. function proc(Caster, Target, Type)
  21. if Type == 2 then
  22. RemoveControlEffect(Target, 11)
  23. end
  24. end
  25. function remove(Caster, Target)
  26. RemoveControlEffect(Target, 11)
  27. RemoveSpellBonus(Target)
  28. RemoveProc(Target)
  29. end