Anger.lua 547 B

123456789101112131415161718192021
  1. --[[
  2. Script Name : Spells/Fighter/Warrior/Anger.lua
  3. Script Author : Dello
  4. Script Date : 2014.07.11 03:07:45
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, MinTaunt, MaxTaunt)
  9. -- Increases Threat to target by 51 - 62
  10. if MaxTaunt ~= nil and MinTaunt < MaxTaunt then
  11. AddHate(Caster, Target, math.random(MinTaunt, MaxTaunt))
  12. else
  13. AddHate(Caster, Target, MinTaunt)
  14. end
  15. -- Interrupts target
  16. if target ~= nil then
  17. Interrupt(Caster, Target)
  18. end
  19. end