Cease.lua 804 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Wizard/Cease.lua
  3. Script Author : neatz09
  4. Script Date : 2019.10.07 03:10:05
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, MinVal, MaxVal)
  9. -- Interrupts target encounter
  10. Interrupt(Caster, Target)
  11. -- Decreases Threat to target by 355 - 434
  12. if MaxVal ~= nil and MinVal < MaxVal then
  13. AddHate(Caster, Target, math.random(MinVal, MaxVal), 1)
  14. else
  15. AddHate(Caster, Target, MinVal, 1)
  16. end
  17. -- Stifles target
  18. -- If Target is not Epic
  19. -- Resistibility increases against targets higher than level 29.
  20. if not IsEpic(Target) then
  21. AddControlEffect(Target, 2)
  22. end
  23. end
  24. function remove(Caster, Target)
  25. RemoveControlEffect(Target, 2)
  26. end