AtrebasEtherealBindings.lua 707 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : Spells/AtrebasEtherealBindings.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.05.16 04:05:52
  5. Script Purpose :
  6. :
  7. --]]
  8. function precast(Caster, Target)
  9. -- Does not affect Epic targets
  10. if IsEpic(Target) then
  11. return false, 43
  12. end
  13. return true
  14. end
  15. function cast(Caster, Target)
  16. -- Roots target
  17. AddControlEffect(Target, 5)
  18. -- 10% chance to dispel when target takes damage
  19. AddProc(Target, 15, 10.0)
  20. end
  21. function proc(Caster, Target, Type)
  22. if Type == 15 then
  23. CancelSpell()
  24. end
  25. end
  26. function remove(Caster, Target)
  27. RemoveControlEffect(Target, 5)
  28. end