Provoke.lua 584 B

123456789101112131415161718192021
  1. --[[
  2. Script Name : Spells/Fighter/Warrior/Guardian/Provoke.lua
  3. Script Author : John Adams
  4. Script Date : 2013.11.22 12:11:28
  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