ViciousBite.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : Spells/Traditions/ViciousBite.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.08.29 07:08:06
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MainDmg, DoTDmg)
  9. Level = GetLevel(Caster)
  10. SpellLevel = 1
  11. Mastery = SpellLevel + 50
  12. StatBonus = GetStr(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 = 1
  24. Mastery = SpellLevel + 50
  25. StatBonus = GetStr(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
  34. function remove(Caster, Target)
  35. end