Quicksand.lua 1009 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --[[
  2. Script Name : Spells/Mage/Summoner/Conjuror/Quicksand.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.03.12 04:03:35
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Resistibility increases against targets higher than level 29.
  9. function precast(Caster, Target)
  10. -- Does not affect Epic targets
  11. if IsEpic(Target) then
  12. return false, 43
  13. end
  14. return true
  15. end
  16. function cast(Caster, Target)
  17. -- Roots target
  18. SetSpeedMultiplier(Target, 0)
  19. -- 15% chance to dispel when target takes damage
  20. AddProc(Target, 2, 15.0)
  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. SetSpeedMultiplier(Target, 1.0)
  29. -- Applies Quicksand on termination. Lasts for 10.0 seconds.
  30. -- Slows target by 27.9%
  31. -- 5% chance to dispel when target receives hostile action
  32. -- 5% chance to dispel when target takes damage
  33. end