Snare.lua 680 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : Spells/Priest/Druid/Snare.lua
  3. Script Author : LordPazuzu
  4. Script Date : 3/14/2023
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. -- Slows target by 40.0%
  10. -- Does not affect Epic targets
  11. function precast(Caster, Target)
  12. -- Does not affect Epic targets
  13. if IsEpic(Target) then
  14. return false, 43
  15. end
  16. return true
  17. end
  18. function cast(Caster, Target, Snare)
  19. Slow = 1.0 - Snare
  20. SetSpellSnareValue(Target, Slow)
  21. AddControlEffect(Target, 11)
  22. end
  23. function remove(Caster, Target)
  24. RemoveControlEffect(Target, 11)
  25. end