9
3

Quicksand.lua 712 B

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : Spells/Commoner/Quicksand.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.03.27 03:03:57
  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.304)
  18. -- 10% chance to dispel when target takes damage
  19. AddProc(Target, 15, 5.0)
  20. end
  21. function proc(Caster, Target, Type)
  22. if Type == 15 then
  23. CancelSpell()
  24. end
  25. end
  26. function remove(Caster, Target)
  27. SetSpeedMultiplier(Target, 1.0)
  28. end