9
3

WildSwingNPC.lua 697 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : Spells/Fighter/WildSwingNPC.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2024.02.18 08:02:26
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  9. Level = GetLevel(Caster)
  10. SpellLevel = 10
  11. Mastery = SpellLevel + 40
  12. StatBonus = GetStr(Caster) / 10
  13. if Level < Mastery then
  14. LvlBonus = Level - SpellLevel
  15. else LvlBonus = Mastery - SpellLevel
  16. end
  17. DmgBonus = StatBonus * 2 + LvlBonus
  18. MaxDmg = MaxVal + math.floor(DmgBonus)
  19. MinDmg = MinVal + math.floor(DmgBonus)
  20. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  21. end