Apocalypse.lua 748 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Warlock/Apocalypse.lua
  3. Script Author : neatz09
  4. Script Date : 2019.04.23 09:04:39
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Inflicts 191 - 355 poison damage on target encounter instantly and every 1.5 seconds
  9. function cast(Caster, Target, DoTType, MinVal, MaxVal)
  10. if MaxVal ~= nil and MinVal < MaxVal then
  11. SpellDamage(Target, DoTType, math.random(MinVal, MaxVal))
  12. else
  13. SpellDamage(Target, DoTType, MinVal)
  14. end
  15. end
  16. function tick(Caster, Target, DoTType, MinVal, MaxVal)
  17. if MaxVal ~= nil and MinVal < MaxVal then
  18. SpellDamage(Target, DoTType, math.random(MinVal, MaxVal))
  19. else
  20. SpellDamage(Target, DoTType, MinVal)
  21. end
  22. end