123456789101112131415161718192021222324252627 |
- --[[
- Script Name : Spells/Fighter/WildSwingFire.lua
- Script Author : LordPazuzu
- Script Date : 2023.03.02 09:03:24
- Script Purpose :
- :
- --]]
- function cast(Caster, Target, DmgType, MinVal, MaxVal)
- Level = GetLevel(Caster)
- SpellLevel = 1
- Mastery = SpellLevel + 10
- StatBonus = GetStr(Caster) / 10
-
- if Level < Mastery then
- LvlBonus = Level - SpellLevel
- else LvlBonus = Mastery - SpellLevel
- end
-
- DmgBonus = LvlBonus + StatBonus
- MaxDmg = MaxVal + math.floor(DmgBonus)
- MinDmg = MinVal + math.floor(DmgBonus)
-
- SpellDamage(Target, DmgType, MinDmg, MaxDmg)
- SpellDamage(Target, 3, MinDmg, MaxDmg)
-
- end
|