LightningBurst.lua 537 B

123456789101112131415161718
  1. --[[
  2. Script Name : Spells/Mage/LightningBurst.lua
  3. Script Author : Ememjr
  4. Script Date : 2017.11.11 03:11:14
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. -- Inflicts 15 - 20 magic damage on target
  10. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  11. if MaxVal ~= nil and MinVal < MaxVal then
  12. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  13. else
  14. SpellDamage(Target, DmgType, MinVal)
  15. end
  16. end