Acid.lua 748 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : Spells/Mage/Sorcerer/Warlock/Acid.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.01.14 05:01:06
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Inflicts 3 - 6 poison damage on target instantly and every 3 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