12345678910111213141516171819202122232425 |
- --[[
- Script Name : Spells/Mage/Enchanter/MindJolt.lua
- Script Author : LordPazuzu
- Script Date : 2024.01.23 12:01:45
- Script Purpose :
- :
- --]]
- function cast(Caster, Target)
- Level = GetLevel(Caster)
- SpellLevel = 17
- Mastery = SpellLevel + 10
- StatBonus = GetInt(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)
- end
|