12345678910111213141516171819202122232425 |
- --[[
- Script Name : Spells/Fighter/Warrior/Guardian/TauntingBlow.lua
- Script Author : John Adams
- Script Date : 2013.11.22 03:11:23
- Script Purpose :
- :
- --]]
- function cast(Caster, Target, DmgType, MinVal, MaxVal, MinTauntVal, MaxTauntVal)
- -- Inflicts 3 - 6 melee damage on target
- if MaxVal ~= nil and MinVal < MaxVal then
- SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
- else
- SpellDamage(Target, DmgType, MinVal)
- end
- -- Increases Threat to target by 47 - 57
- if MaxTauntVal ~= nil and MinTauntVal < MaxTauntVal then
- AddHate(Caster, Target, math.random(MinTauntVal, MaxTauntVal))
- else
- AddHate(Caster, Target, MinTauntVal)
- end
- end
|