9
3

Wound.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : Spells/Fighter/Warrior/Wound.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.01.02 09:01:45
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal, DotDmg, SpellLevel)
  9. Level = GetLevel(Caster)
  10. Mastery = SpellLevel + 10
  11. StatBonus = GetStr(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, DmgType, MinDmg, MaxDmg)
  20. end
  21. function tick(Caster, Target, DmgType, MinVal, MaxVal, DotDmg, SpellLevel)
  22. Level = GetLevel(Caster)
  23. Mastery = SpellLevel + 10
  24. StatBonus = GetStr(Caster) / 10
  25. if Level < Mastery then
  26. LvlBonus = Level - SpellLevel
  27. else LvlBonus = Mastery - SpellLevel
  28. end
  29. DmgBonus = LvlBonus + StatBonus
  30. TotalDmg = math.floor(DmgBonus) * 2 + DotDmg
  31. SpellDamage(Target, DmgType, TotalDmg, TotalDmg)
  32. end