SparklingBlade.lua 848 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : Spells/Scout/Bard/SparklingBlade.lua
  3. Script Author : LordPazuzu
  4. Script Date : 3/18/2024
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal, Mit)
  9. Level = GetLevel(Caster)
  10. SpellLevel = 11
  11. Mastery = SpellLevel + 10
  12. StatBonus = GetStr(Caster) / 10
  13. if Level < Mastery then
  14. LvlBonus = Level - SpellLevel
  15. else LvlBonus = Mastery - SpellLevel
  16. end
  17. DmgBonus = LvlBonus + StatBonus
  18. MinDmg = math.floor(DmgBonus) * 2 + MinVal
  19. MaxDmg = math.floor(DmgBonus) * 2 + MaxVal
  20. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  21. if LastSpellAttackHit(Target) then
  22. AddSpellBonus(Target, 206, Mit)
  23. end
  24. end
  25. function remove(Caster, Target)
  26. RemoveSpellBonus()
  27. end