9
3

CircularStrike.lua 858 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : Spells/Scout/Rogue/CircularStrike.lua
  3. Script Author : LordPazuzu
  4. Script Date : 1/3/2023
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Interrupts targets in Area of Effect
  9. -- Inflicts 38 - 64 melee damage on targets in Area of Effect
  10. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  11. Level = GetLevel(Caster)
  12. SpellLevel = 6
  13. Mastery = SpellLevel + 10
  14. StatBonus = GetStr(Caster) / 10
  15. if Level < Mastery then
  16. LvlBonus = Level - SpellLevel
  17. else LvlBonus = Mastery - SpellLevel
  18. end
  19. DmgBonus = LvlBonus + StatBonus
  20. MaxDmg = MaxVal + math.floor(DmgBonus)
  21. MinDmg = MinVal + math.floor(DmgBonus)
  22. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  23. if LastSpellAttackHit() then
  24. Interrupt(Caster, Target)
  25. end
  26. end