Mock.lua 546 B

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