123456789101112131415161718192021222324252627282930 |
- --[[
- Script Name : Spells/Priest/Druid/Snare.lua
- Script Author : LordPazuzu
- Script Date : 3/14/2023
- Script Purpose :
- :
- --]]
- -- Info from spell_display_effects (remove from script when done)
- -- Slows target by 40.0%
- -- Does not affect Epic targets
- function precast(Caster, Target)
- -- Does not affect Epic targets
- if IsEpic(Target) then
- return false, 43
- end
- return true
- end
- function cast(Caster, Target, Snare)
- Slow = 1.0 - Snare
- SetSpellSnareValue(Target, Slow)
- AddControlEffect(Target, 11)
- end
- function remove(Caster, Target)
- RemoveControlEffect(Target, 11)
- end
|