QuickFlurry.lua 868 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : Spells/Scout/Rogue/QuickFlurry.lua
  3. Script Author : LordPazuzu
  4. Script Date : 1/3/2023
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Inflicts 24 - 40 melee damage on target
  9. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  10. Level = GetLevel(Caster)
  11. SpellLevel = 12
  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. MaxDmg = math.floor(DmgBonus) * 2 + MaxVal
  20. MinDmg = math.floor(DmgBonus) * 2 + MinVal
  21. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  22. -- Inflicts 24 - 40 melee damage on target
  23. if LastSpellAttackHit() then
  24. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  25. end
  26. end