9
3

BruisingStrike.lua 828 B

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