Pierce.lua 952 B

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : Spells/Scout/Predator/Pierce.lua
  3. Script Author : neatz09
  4. Script Date : 2020.11.04 12:11:56
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Inflicts 27 - 46 melee damage on target
  9. -- Inflicts 6 piercing damage on target every 4 seconds
  10. function cast(Caster, Target, DmgType, MinVal, MaxVal, TickType, TickMin)
  11. Level = GetLevel(Caster)
  12. SpellLevel = 15
  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 = math.floor(DmgBonus) * 2 + MaxVal
  21. MinDmg = math.floor(DmgBonus) * 2 + MinVal
  22. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  23. end
  24. --[[function tick(Caster, Target, DmgType, MinVal, MaxVal, TickType, TickMin)
  25. SpellDamage(Target, TickType, TickMin, TickMax)
  26. end--]]