9
3

Immobilize.lua 773 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --[[
  2. Script Name : Spells/Mage/Summoner/Immobilize.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.03.27 03:03:03
  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. SetSpeedMultiplier(Target, 0)
  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. SetSpeedMultiplier(Target, 1.0)
  28. CastSpell(Target, 2550393, GetSpellTier())
  29. end