9
3

ArcaneBindings.lua 1004 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --[[
  2. Script Name : Spells/Mage/ArcaneBindings.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.09.12 03:09:56
  5. Script Purpose :
  6. :
  7. --]]
  8. --[[ Info from spell_display_effects (remove from script when done)
  9. *Roots target
  10. *10% chance to dispel when target receives hostile action
  11. *10% chance to dispel when target takes damage
  12. *Does not affect Epic targets
  13. *Resistibility increases against targets higher than level 29.
  14. --]]
  15. function precast(Caster, Target)
  16. -- Does not affect Epic targets
  17. if IsEpic(Target) then
  18. return false, 43
  19. end
  20. return true
  21. end
  22. function cast(Caster, Target)
  23. -- Roots target
  24. SetSpeedMultiplier(Target, 0)
  25. -- 10% chance to dispel when target takes damage
  26. AddProc(Target, 2, 10.0)
  27. end
  28. function proc(Caster, Target, Type)
  29. if Type == 2 then
  30. CancelSpell()
  31. end
  32. end
  33. function remove(Caster, Target)
  34. SetSpeedMultiplier(Target, 1.0)
  35. end