1234567891011121314151617181920212223242526272829303132 |
- --[[
- Script Name : Spells/Fighter/Warrior/Concussion.lua
- Script Author : LordPazuzu
- Script Date : 3/28/2023
- Script Purpose :
- :
- --]]
- function cast(Caster, Target, DmgType, MinVal, MaxVal, PwrMin, PwrMax)
- Level = GetLevel(Caster)
- SpellLevel = 17
- Mastery = SpellLevel + 10
- StatBonus = GetStr(Caster) / 10
-
- if Level < Mastery then
- LvlBonus = Level - SpellLevel
- else LvlBonus = Mastery - SpellLevel
- end
-
-
- DmgBonus = LvlBonus + StatBonus
- MaxDmg = math.floor(DmgBonus) * 2 + MaxVal
- MinDmg = math.floor(DmgBonus) * 2 + MinVal
-
- SpellDamage(Target, DmgType, MinDmg, MaxDmg)
- -- Decreases power of target by 23 - 38
- SpellHeal("Power", PwrMin, PwrMax)
- end
|