1234567891011121314151617181920212223242526 |
- --[[
- Script Name : Spells/Traditions/DullClawClamp.lua
- Script Author : LordPazuzu
- Script Date : 2023.10.12 04:10:56
- Script Purpose :
- :
- --]]
- function cast(Caster, Target, DmgType, MinVal, MaxVal)
- Level = GetLevel(Caster)
- SpellLevel = 5
- Mastery = SpellLevel + 50
- StatBonus = GetStr(Caster) / 10
-
- if Level < Mastery then
- LvlBonus = Level - SpellLevel
- else LvlBonus = Mastery - SpellLevel
- end
-
- DmgBonus = math.floor(LvlBonus + StatBonus) * 2
-
- MaxDmg = MaxVal + DmgBonus
- MinDmg = MinVal + DmgBonus
-
- SpellDamage(Target, DmgType, MinDmg, MaxDmg)
- end
|