Snare.lua 653 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : Spells/Priest/Druid/Snare.lua
  3. Script Author : neatz09
  4. Script Date : 2020.09.21 12:09:26
  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, SlowAmt)
  19. local Slow = 100 - SlowAmt
  20. SetSpeedMultiplier(Target, Slow)
  21. end
  22. function remove(Caster, Target)
  23. SetSpeedMultiplier(Target, 1)
  24. end