ExplosiveWarts.lua 594 B

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