9
3

Incinerate.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Incinerate.lua
  3. Script Author : neatz09
  4. Script Date : 2020.11.05 02:11:53
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Inflicts 10 - 18 heat damage on target instantly and every 3 seconds
  9. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  10. Level = GetLevel(Caster)
  11. SpellLevel = 17
  12. Mastery = SpellLevel + 10
  13. StatBonus = GetInt(Caster) / 10
  14. if Level < Mastery then
  15. LvlBonus = Level - SpellLevel
  16. else LvlBonus = Mastery - SpellLevel
  17. end
  18. DmgBonus = LvlBonus + StatBonus
  19. MaxDmg = math.floor(DmgBonus) * 2 + MaxVal
  20. MinDmg = math.floor(DmgBonus) * 2 + MinVal
  21. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  22. end
  23. function tick(Caster, Target, DmgType, MinVal, MaxVal)
  24. Level = GetLevel(Caster)
  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. MaxDmg = math.floor(DmgBonus) * 2 + MaxVal
  33. MinDmg = math.floor(DmgBonus) * 2 + MinVal
  34. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  35. end