StaticPulse.lua 805 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : Spells/Mage/StaticPulse.lua
  3. Script Author : neatz09
  4. Script Date : 2019.12.14 01:12:19
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. -- Inflicts 2 - 3 magic damage on target instantly and every 4 seconds
  10. function cast(Caster, Target, DoTType, MinVal, MaxVal)
  11. if MaxVal ~= nil and MinVal < MaxVal then
  12. SpellDamage(Target, DoTType, math.random(MinVal, MaxVal))
  13. else
  14. SpellDamage(Target, DoTType, MinVal)
  15. end
  16. end
  17. function tick(Caster, Target, DoTType, MinVal, MaxVal)
  18. if MaxVal ~= nil and MinVal < MaxVal then
  19. SpellDamage(Target, DoTType, math.random(MinVal, MaxVal))
  20. else
  21. SpellDamage(Target, DoTType, MinVal)
  22. end
  23. end