9
3

ArcaneBindings.lua 1009 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. AddControlEffect(Target, 5)
  25. -- 10% chance to dispel when target takes damage
  26. AddProc(Target, 15, 10.0)
  27. end
  28. function proc(Caster, Target, Type)
  29. if Type == 15 then
  30. CancelSpell()
  31. end
  32. end
  33. function remove(Caster, Target)
  34. RemoveControlEffect(Target, 5)
  35. end