9
3

Conflagration.lua 758 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Conflagration.lua
  3. Script Author : neatz09
  4. Script Date : 2020.11.05 02:11:30
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Inflicts 65 - 121 heat damage on targets in Area of Effect
  9. function cast(Caster, Target, DmgType, MinVal, MaxVal, SpellLevel)
  10. Level = GetLevel(Caster)
  11. Mastery = SpellLevel + 10
  12. StatBonus = GetInt(Caster) / 10
  13. if Level < Mastery then
  14. LvlBonus = Level - SpellLevel
  15. else LvlBonus = Mastery - SpellLevel
  16. end
  17. DmgBonus = LvlBonus + StatBonus
  18. MaxDmg = math.floor(DmgBonus) * 2 + MaxVal
  19. MinDmg = math.floor(DmgBonus) * 2 + MinVal
  20. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  21. end