9
3

Blaze.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Blaze.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.11.23 07:11:37
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DoTType, MinVal, MaxVal, DotMin, DotMax, SpellLevel)
  9. Level = GetLevel(Caster)
  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 = math.floor(DmgBonus) * 2 + MaxVal
  18. MinDmg = math.floor(DmgBonus) * 2 + MinVal
  19. SpellDamage(Target, DoTType, MinDmg, MaxDmg)
  20. end
  21. function tick(Caster, Target, DoTType, MinVal, MaxVal, DotMin, DotMax, SpellLevel)
  22. Level = GetLevel(Caster)
  23. Mastery = SpellLevel + 10
  24. StatBonus = GetInt(Caster) / 10
  25. if Level < Mastery then
  26. LvlBonus = Level - SpellLevel
  27. else LvlBonus = Mastery - SpellLevel
  28. end
  29. DmgBonus = LvlBonus + StatBonus
  30. MaxDmg = math.floor(DmgBonus) * 2 + DotMax
  31. MinDmg = math.floor(DmgBonus) * 2 + DotMax
  32. SpellDamage(Target, DoTType, MinDmg, MaxDmg)
  33. end