9
3

ChainsofTorment.lua 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --[[
  2. Script Name : Spells/Mage/Summoner/Necromancer/ChainsofTorment.lua
  3. Script Author : Cynnar
  4. Script Date : 2016.09.21 19:19:47
  5. Script Purpose :
  6. :
  7. --]]
  8. function precast(Caster, Target)
  9. -- Does not affect Epic targets
  10. if IsEpic(Target) then
  11. return false, 43
  12. end
  13. return true
  14. end
  15. function cast(Caster, Target, Snare)
  16. -- Roots target
  17. SetSpeedMultiplier(Target, Snare)
  18. -- 15% chance to dispel when target takes damage
  19. AddProc(Target, 2, 15.0)
  20. -- Resistibility increases against targets higher than level 34.
  21. end
  22. function proc(Caster, Target, Type)
  23. if Type == 2 then
  24. CancelSpell()
  25. end
  26. end
  27. function remove(Caster, Target)
  28. -- code to remove the spell
  29. SetSpeedMultiplier(Target, 1.0)
  30. -- Applies Chains of Torment on termination. Lasts for 5.0 seconds.
  31. -- Makes target afraid
  32. -- Slows target by 13.9%
  33. -- Resistibility increases against targets higher than level 34.
  34. -- 30% chance to dispel when target takes damage
  35. end