9
3

StaticPulse.lua 848 B

123456789101112131415161718192021222324252627
  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. SpawnSet(Target,"visual_state",11737)
  17. end
  18. function tick(Caster, Target, DoTType, MinVal, MaxVal)
  19. if MaxVal ~= nil and MinVal < MaxVal then
  20. SpellDamage(Target, DoTType, math.random(MinVal, MaxVal))
  21. else
  22. SpellDamage(Target, DoTType, MinVal)
  23. end
  24. end