FierceBite.lua 572 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : Spells/Commoner/FierceBite.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.09.11 08:09:55
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, MinVal, MaxVal)
  9. Level = GetLevel(Caster)
  10. SpellLevel = 1
  11. Mastery = SpellLevel + 50
  12. if Level < Mastery then
  13. LvlBonus = Level - SpellLevel
  14. else LvlBonus = Mastery - SpellLevel
  15. end
  16. MaxDmg = MaxVal + LvlBonus
  17. MinDmg = MinVal + LvlBonus
  18. SpellDamage(Target, 0, MinDmg, MaxDmg)
  19. end