9
3

SnappingMandible.lua 811 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : Spells/Traditions/SnappingMandible.lua
  3. Script Author : neatz09
  4. Script Date : 2022.05.21 05:05:11
  5. Script Purpose :
  6. :
  7. --]]
  8. --[[ Info from spell_display_effects (remove from script when done)
  9. *Inflicts 2 - 3 melee damage on target
  10. --]]
  11. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  12. Level = GetLevel(Caster)
  13. SpellLevel = 1
  14. Mastery = SpellLevel + 50
  15. StatBonus = GetStr(Caster) / 10
  16. if Level < Mastery then
  17. LvlBonus = Level - SpellLevel
  18. else LvlBonus = Mastery - SpellLevel
  19. end
  20. DmgBonus = LvlBonus + StatBonus
  21. MaxDmg = MaxVal + math.floor(DmgBonus)
  22. MinDmg = MinVal + math.floor(DmgBonus)
  23. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  24. end