9
3

AlinsKeeningLamentation.lua 736 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : Spells/Scout/Bard/AlinsKeeningLamentation.lua
  3. Script Author : LordPazuzu
  4. Script Date : 3/29/2024
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Inflicts 46 - 76 mental damage on target encounter
  9. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  10. Level = GetLevel(Caster)
  11. SpellLevel = 15
  12. Mastery = SpellLevel + 10
  13. StatBonus = GetInt(Caster) / 10
  14. if Level < Mastery then
  15. LvlBonus = Level - SpellLevel
  16. else LvlBonus = Mastery - SpellLevel
  17. end
  18. DmgBonus = math.floor(LvlBonus + StatBonus) *2
  19. MinDmg = MinVal + DmgBonus
  20. MaxDmg = MaxVal + DmgBonus
  21. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  22. end