9
3

Nullify.lua 724 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Warlock/Nullify.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.03.07 08:03:56
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, MinHate, MaxHate)
  9. -- Interrupts target encounter
  10. Interrupt(Target)
  11. -- Decreases Threat to target encounter by 112 - 137
  12. AddHate(Caster, Target, math.random(MinHate, MaxHate), 1)
  13. -- Dazes target encounter
  14. -- If Target is not Epic
  15. -- Resistibility increases against targets higher than level 29.
  16. if not IsEpic(Target) then
  17. AddControlEffect(Target, 3)
  18. end
  19. end
  20. function remove(Caster, Target)
  21. RemoveControlEffect(Target, 3)
  22. end