StormofLightning.lua 730 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Wizard/StormOfLightning.lua
  3. Script Author : Zcoretri
  4. Script Date : 2013.09.12 21:42:48
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DoTType, MinVal, MaxVal)
  9. if MaxVal ~= nil and MinVal < MaxVal then
  10. SpellDamage(Target, DoTType, math.random(MinVal, MaxVal))
  11. else
  12. SpellDamage(Target, DoTType, MinVal)
  13. end
  14. end
  15. function tick(Caster, Target, DoTType, MinVal, MaxVal)
  16. if MaxVal ~= nil and MinVal < MaxVal then
  17. SpellDamage(Target, DoTType, math.random(MinVal, MaxVal))
  18. else
  19. SpellDamage(Target, DoTType, MinVal)
  20. end
  21. end
  22. function remove(Caster, Target, DoTType, MinVal, MaxVal)
  23. end