TauntingBlow.lua 745 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : Spells/Fighter/Warrior/Guardian/TauntingBlow.lua
  3. Script Author : John Adams
  4. Script Date : 2013.11.22 03:11:23
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal, MinTauntVal, MaxTauntVal)
  9. -- Inflicts 3 - 6 melee damage on target
  10. if MaxVal ~= nil and MinVal < MaxVal then
  11. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  12. else
  13. SpellDamage(Target, DmgType, MinVal)
  14. end
  15. -- Increases Threat to target by 47 - 57
  16. if MaxTauntVal ~= nil and MinTauntVal < MaxTauntVal then
  17. AddHate(Caster, Target, math.random(MinTauntVal, MaxTauntVal))
  18. else
  19. AddHate(Caster, Target, MinTauntVal)
  20. end
  21. end