9
3

Shackle.lua 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Wizard/Shackle.lua
  3. Script Author : Zcoretri redone by Cynnar
  4. Script Date : 2013.13.12 19:08:55 redone on 2016.26.09 21:05:55
  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)
  16. -- Roots target
  17. SetSpeedMultiplier(Target, 0)
  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 Root in termination. Lasts for 10.0 seconds.
  31. -- Slows target by X%
  32. -- 5% chance to dispel when target receives hostile action
  33. -- 5% chance to dispel when target takes damage
  34. end