9
3

BadgerThrash.lua 856 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : Spells/Traditions/BadgerThrash.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.09.24 06:09:16
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, LowDmg, HighDmg)
  9. Level = GetLevel(Caster)
  10. SpellLevel = 7
  11. Mastery = SpellLevel + 50
  12. StatBonus = GetStr(Caster) / 10
  13. if Level < Mastery then
  14. LvlBonus = Level - SpellLevel
  15. else LvlBonus = Mastery - SpellLevel
  16. end
  17. DmgBonus = LvlBonus + StatBonus
  18. TotalLow = LowDmg + math.floor(DmgBonus)
  19. TotalHigh = HighDmg + math.floor(DmgBonus)
  20. SpellDamage(Target, DmgType, TotalLow, TotalHigh)
  21. if LastSpellAttackHit() then
  22. SpellDamage(Target, DmgType, TotalLow, TotalHigh)
  23. SpellDamage(Target, DmgType, TotalLow, TotalHigh)
  24. end
  25. end