FocusedStrike.lua 749 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : Spells/Fighter/Brawler/FocusedStrike.lua
  3. Script Author : LordPazuzu
  4. Script Date : 9/6/2023
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Inflicts melee damage on target at range.
  9. function cast(Caster, Target, DmgType, DmgLow, DmgHigh)
  10. Level = GetLevel(Caster)
  11. SpellLevel = 10
  12. Mastery = SpellLevel + 10
  13. StatBonus = GetStr(Caster) / 10
  14. if Level < Mastery then
  15. LvlBonus = Level - SpellLevel
  16. else LvlBonus = Mastery - SpellLevel
  17. end
  18. DmgBonus = LvlBonus + StatBonus
  19. MinDmg = math.floor(DmgBonus) * 2 + DmgLow
  20. MaxDmg = math.floor(DmgBonus) * 2 + DmgHigh
  21. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  22. end