9
3

BindingLight.lua 791 B

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : Spells/Mage/Enchanter/BindingLight.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.04.09 08:04:20
  5. Script Purpose :
  6. :
  7. --]]
  8. --[[ Info from spell_display_effects (remove from script when done)
  9. *Roots target.
  10. *Blurs vision of target.
  11. *Reduces movement speed of target by X.
  12. --]]
  13. function cast(Caster, Target, Snare)
  14. AddControlEffect(Target, 5)
  15. AddProc(Target, 2, 5.0)
  16. end
  17. function proc(Caster, Target, Type, Snare)
  18. if Type == 2 then
  19. CancelSpell()
  20. end
  21. end
  22. function remove(Caster,Target, Snare)
  23. RemoveControlEffect()
  24. RemoveProc()
  25. Spell = GetSpell(2550412, GetSpellTier())
  26. SetSpellDataIndex(Spell, 0, Snare)
  27. CastCustomSpell(Spell, Caster, Target)
  28. end