Blind.lua 652 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : Spells/Commoner/Blind.lua
  3. Script Author : terrible
  4. Script Date : 2023.09.06 11:09:25
  5. Script Purpose :
  6. :
  7. --]]
  8. --[[
  9. Applies Blind:
  10. 1. Daze target
  11. 2. Blur target
  12. 3. Reduce movement of target
  13. ]]
  14. function cast(Caster, Target, Timer, Snare)
  15. if not IsEpic(Target) then
  16. --Dazes the target
  17. AddControlEffect(Target, 3)
  18. BlurVision(Target, 1.0)
  19. SetSpeedMultiplier(Target, Snare)
  20. end
  21. end
  22. function remove(Caster, Target)
  23. RemoveControlEffect(Target, 3)
  24. BlurVision(Target, 0)
  25. SetSpeedMultiplier(Target, 1)
  26. end