DreadfulWrath.lua 934 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. --[[
  2. Script Name : Spells/Fighter/Crusader/Shadowknight/DreadfulWrath.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.17 01:10: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, DmgType, MinVal, MaxVal, Snare)
  16. SpellDamage(Target, DmgType, MinVal, MaxVal)
  17. -- Applies Snare on termination. Lasts for 24.0 seconds.
  18. -- Slows target by 37.7%
  19. -- 5% chance to dispel when target receives hostile action
  20. -- 5% chance to dispel when target takes damage
  21. SetSpeedMultiplier(Target, Snare)
  22. AddProc(Target, 2, 5.0)
  23. end
  24. function proc(Caster, Target, Type)
  25. if Type == 2 then
  26. CancelSpell()
  27. end
  28. end
  29. function remove(Caster, Target)
  30. -- code to remove the spell
  31. SetSpeedMultiplier(Target, 1.0)
  32. end