123456789101112131415161718192021222324252627 |
- --[[
- Script Name : Spells/Scout/Bard/PiercingShriek.lua
- Script Author : LordPazuzu
- Script Date : 3/4/2023
- Script Purpose :
- :
- --]]
- -- Inflicts 49 - 82 mental damage on target
- function cast(Caster, Target, DmgType, MinVal, MaxVal)
- Level = GetLevel(Caster)
- SpellLevel = 12
- Mastery = SpellLevel + 10
- StatBonus = GetInt(Caster) / 10
-
- if Level < Mastery then
- LvlBonus = Level - SpellLevel
- else LvlBonus = Mastery - SpellLevel
- end
-
- DmgBonus = LvlBonus * 2 + StatBonus
- MaxDmg = MaxVal + math.floor(DmgBonus)
- MinDmg = MinVal + math.floor(DmgBonus)
-
- SpellDamage(Target, DmgType, MinDmg, MaxDmg)
- end
|