Blind.lua 686 B

123456789101112131415161718192021222324252627282930
  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, Snare)
  15. if not IsEpic(Target) then
  16. --Dazes the target
  17. AddControlEffect(Target, 3)
  18. BlurVision(Target, 1.0)
  19. SetSpellSnareValue(Target, Snare)
  20. AddControlEffect(Target, 11)
  21. end
  22. end
  23. function remove(Caster, Target)
  24. RemoveControlEffect(Target, 3)
  25. BlurVision(Target, 0)
  26. RemoveControlEffect(Target, 11)
  27. end