NobleWrath.lua 805 B

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : Spells/Commoner/NobleWrath.lua
  3. Script Author : neatz09
  4. Script Date : 2022.05.21 06:05:29
  5. Script Purpose :
  6. :
  7. --]]
  8. --[[ Info from spell_display_effects (remove from script when done)
  9. *AoE DD Crushing damage X - Y target.
  10. --]]
  11. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  12. Level = GetLevel(Caster)
  13. SpellLevel = 10
  14. Mastery = SpellLevel + 10
  15. StatBonus = GetInt(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