9
3

GapingWound.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --[[
  2. Script Name : Spells/Fighter/GapingWound.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.08.30 02:08:49
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DoTType, MinVal, MaxVal)
  9. Level = GetLevel(Caster)
  10. SpellLevel = 5
  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. MaxDmg = MaxVal + math.floor(DmgBonus)
  19. MinDmg = MinVal + math.floor(DmgBonus)
  20. SpellDamage(Target, DoTType, MinDmg, MaxDmg)
  21. end
  22. function tick(Caster, Target, DoTType, MinVal, MaxVal)
  23. Level = GetLevel(Caster)
  24. SpellLevel = 5
  25. Mastery = SpellLevel + 50
  26. StatBonus = GetStr(Caster) / 10
  27. if Level < Mastery then
  28. LvlBonus = Level - SpellLevel
  29. else LvlBonus = Mastery - SpellLevel
  30. end
  31. DmgBonus = LvlBonus + StatBonus
  32. MaxDmg = MaxVal + math.floor(DmgBonus)
  33. MinDmg = MinVal + math.floor(DmgBonus)
  34. SpellDamage(Target, DoTType, MinDmg, MaxDmg)
  35. end