BludgeoningEarth.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --[[
  2. Script Name : Spells/Mage/Summoner/BludgeoningEarth.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.03.24 04:03:20
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal, DotType, DotMin, DotMax)
  9. Level = GetLevel(Caster)
  10. SpellLevel = 17
  11. Mastery = SpellLevel + 10
  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. MaxDmg = math.floor(DmgBonus) * 2 + MaxVal
  19. MinDmg = math.floor(DmgBonus) * 2 + MinVal
  20. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  21. end
  22. function tick(Caster, Target, DmgType, MinVal, MaxVal, DotType, DotMin, DotMax)
  23. Level = GetLevel(Caster)
  24. SpellLevel = 17
  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. MaxDot = math.floor(DmgBonus) * 2 + DotMax
  33. MinDot = math.floor(DmgBonus) * 2 + DotMin
  34. SpellDamage(Target, DotType, MinDot, MaxDot)
  35. end