Cease.lua 695 B

1234567891011121314151617181920212223242526
  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, MinHate, MaxHate)
  9. -- Interrupts target encounter
  10. Interrupt(Caster, Target)
  11. -- Decreases Threat to target by 355 - 434
  12. AddHate(Caster, Target, math.random(MinHate, MaxHate), 1)
  13. -- Stifles target
  14. -- If Target is not Epic
  15. -- Resistibility increases against targets higher than level 29.
  16. if not IsEpic(Target) then
  17. AddControlEffect(Target, 2)
  18. end
  19. end
  20. function remove(Caster, Target)
  21. RemoveControlEffect(Target, 2)
  22. end