12345678910111213141516171819202122232425262728293031 |
- --[[
- Script Name : Spells/Traditions/BadgerThrash.lua
- Script Author : LordPazuzu
- Script Date : 2023.09.24 06:09:16
- Script Purpose :
- :
- --]]
- function cast(Caster, Target, DmgType, LowDmg, HighDmg)
- Level = GetLevel(Caster)
- SpellLevel = 7
- Mastery = SpellLevel + 50
- StatBonus = GetStr(Caster) / 10
-
- if Level < Mastery then
- LvlBonus = Level - SpellLevel
- else LvlBonus = Mastery - SpellLevel
- end
-
- DmgBonus = LvlBonus + StatBonus
- TotalLow = LowDmg + math.floor(DmgBonus)
- TotalHigh = HighDmg + math.floor(DmgBonus)
-
- SpellDamage(Target, DmgType, TotalLow, TotalHigh)
- if LastSpellAttackHit() then
- SpellDamage(Target, DmgType, TotalLow, TotalHigh)
- SpellDamage(Target, DmgType, TotalLow, TotalHigh)
-
- end
- end
|