TauntingBlow.lua 850 B

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : Spells/Fighter/Warrior/TauntingBlow.lua
  3. Script Author : LordPazuzu
  4. Script Date : 3/28/2023
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, DmgLow, DmgHigh, MinTauntVal, MaxTauntVal, SpellLevel)
  9. Level = GetLevel(Caster)
  10. Mastery = SpellLevel + 10
  11. StatBonus = GetStr(Caster) / 10
  12. if Level < Mastery then
  13. LvlBonus = Level - SpellLevel
  14. else LvlBonus = Mastery - SpellLevel
  15. end
  16. DmgBonus = LvlBonus + StatBonus
  17. MaxDmg = math.floor(DmgBonus) * 2 + DmgHigh
  18. MinDmg = math.floor(DmgBonus) * 2 + DmgLow
  19. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  20. -- Increases Threat to target by 435 - 531
  21. AddHate(Caster, Target, math.random(MinTauntVal, MaxTauntVal), 1)
  22. end