Bloodcoil.lua 735 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : Spells/Mage/Summoner/Necromancer/Bloodcoil.lua
  3. Script Author : Jabantiz
  4. Script Date : 2013.12.07 10:12:29
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Inflicts 5 - 6 disease damage on target instantly and every 4 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