123456789101112131415161718192021222324252627 |
- --[[
- Script Name : Spells/Fighter/WildSwingNPC.lua
- Script Author : LordPazuzu
- Script Date : 2024.02.18 08:02:26
- Script Purpose :
- :
- --]]
- function cast(Caster, Target, DmgType, MinVal, MaxVal)
- Level = GetLevel(Caster)
- SpellLevel = 10
- Mastery = SpellLevel + 40
- StatBonus = GetStr(Caster) / 10
-
- if Level < Mastery then
- LvlBonus = Level - SpellLevel
- else LvlBonus = Mastery - SpellLevel
- end
-
- DmgBonus = StatBonus * 2 + LvlBonus
- MaxDmg = MaxVal + math.floor(DmgBonus)
- MinDmg = MinVal + math.floor(DmgBonus)
-
- SpellDamage(Target, DmgType, MinDmg, MaxDmg)
- end
|