InfectiousTouch.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : Spells/Traditions/InfectiousTouch.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.09.24 06:09:02
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MainDmg, DoTDmg)
  9. Level = GetLevel(Caster)
  10. SpellLevel = 11
  11. Mastery = SpellLevel + 50
  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. TotalDmg = MainDmg + math.floor(DmgBonus)
  19. SpellDamage(Target, DmgType, MainDmg, MainDmg)
  20. end
  21. function tick(Caster, Target, DmgType, MainDmg, DoTDmg)
  22. Level = GetLevel(Caster)
  23. SpellLevel = 11
  24. Mastery = SpellLevel + 50
  25. StatBonus = GetInt(Caster) / 10
  26. if Level < Mastery then
  27. LvlBonus = Level - SpellLevel
  28. else LvlBonus = Mastery - SpellLevel
  29. end
  30. DmgBonus = LvlBonus + StatBonus
  31. TotalDoT = DoTDmg + math.floor(DmgBonus)
  32. SpellDamage(Target, DmgType, TotalDoT, TotalDoT)
  33. end