9
3

LightningBurst.lua 661 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : Spells/Mage/LightningBurst.lua
  3. Script Author : LordPazuzu
  4. Script Date : 12/6/2022
  5. Script Purpose :
  6. --]]
  7. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  8. Level = GetLevel(Caster)
  9. SpellLevel = 3
  10. Mastery = SpellLevel + 10
  11. StatBonus = GetInt(Caster) / 10
  12. if Level < Mastery then
  13. LvlBonus = Level - SpellLevel
  14. else LvlBonus = Mastery - SpellLevel
  15. end
  16. DmgBonus = LvlBonus + StatBonus
  17. MaxDmg = MaxVal + math.floor(DmgBonus)
  18. MinDmg = MinVal + math.floor(DmgBonus)
  19. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  20. end