KaranasHold.lua 777 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : Spells/Priest/Druid/Fury/KaranasHold.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.01.14 03:01:39
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target)
  9. -- Does not affect Epic targets
  10. if not IsEpic(Target) then
  11. -- Roots target
  12. SetSpeedMultiplier(Target, 0)
  13. -- 5% chance to dispel when target takes damage
  14. AddProc(Target, 2, 5.0)
  15. end
  16. -- Resistibility increases against targets higher than level 29.
  17. end
  18. function proc(Caster, Target, Type)
  19. if Type == 2 then
  20. -- Cancel the spell
  21. Say(Caster, "Not Implemented: cancel the spell");
  22. end
  23. end
  24. function remove(Caster, Target)
  25. SetSpeedMultiplier(Target, 1)
  26. end