9
3

Cripple.lua 567 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : Spells/Commoner/Cripple.lua
  3. Script Author : neatz09
  4. Script Date : 2020.09.25 01:09:54
  5. Script Purpose : Subspell for wall of rage
  6. :
  7. --]]
  8. function cast(Caster, Target, Snare)
  9. local Slow = 1.0 - Snare
  10. SetSpeedMultiplier(Target, Slow)
  11. AddProc(Target, 1, 5)
  12. AddProc(Target, 15, 5)
  13. end
  14. function proc(Caster, Target, Type, SlowMod)
  15. if type == 1 or type == 15 then
  16. CancelSpell()
  17. end
  18. end
  19. function remove(Caster, Target)
  20. SetSpeedMultiplier(Target, 1)
  21. RemoveProc(Target)
  22. end