KazlosFrigidBolts.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : Spells/KazlosFrigidBolts.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.05.16 04:05:11
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, MinVal, MaxVal, MinDot, MaxDot)
  9. Level = GetLevel(Caster)
  10. SpellLevel = 10
  11. Mastery = SpellLevel + 10
  12. StatBonus = GetInt(Caster) / 10
  13. if Level < Mastery then
  14. LvlBonus = Level - SpellLevel
  15. else LvlBonus = Mastery - SpellLevel
  16. end
  17. DmgBonus = LvlBonus + StatBonus
  18. MaxDmg = MaxVal + math.floor(DmgBonus)
  19. MinDmg = MinVal + math.floor(DmgBonus)
  20. SpellDamage(Target, 4, MinDmg, MaxDmg)
  21. end
  22. function tick(Caster, Target, MinVal, MaxVal, MinDot, MaxDot)
  23. Level = GetLevel(Caster)
  24. SpellLevel = 10
  25. Mastery = SpellLevel + 10
  26. StatBonus = GetInt(Caster) / 10
  27. if Level < Mastery then
  28. LvlBonus = Level - SpellLevel
  29. else LvlBonus = Mastery - SpellLevel
  30. end
  31. DmgBonus = LvlBonus + StatBonus
  32. DotMax = MaxDot + math.floor(DmgBonus)
  33. DotMin = MinDot + math.floor(DmgBonus)
  34. SpellDamage(Target, 4, DotMin, DotMax)
  35. end