123456789101112131415161718192021222324252627 |
- --[[
- Script Name : Spells/Mage/Summoner/DustBlast.lua
- Script Author : LordPazuzu
- Script Date : 2-18-2023
- Script Purpose : -
- :
- --]]
- -- Inflicts 33 - 49 magic damage on target
- function cast(Caster, Target, DmgType, MinVal, MaxVal)
- Level = GetLevel(Caster)
- SpellLevel = 13
- Mastery = SpellLevel + 10
- StatBonus = GetInt(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)
- end
|