9
3

Cataclysm.lua 749 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --[[
  2. Script Name : dot.lua
  3. Script Purpose : Generic Damage Over Time script
  4. Script Author : John Adams
  5. Script Date : 2008.12.04
  6. --]]
  7. function cast(Caster, Target, DOTType, MinDOTVal, MaxDOTVal)
  8. Interrupt(Target)
  9. -- DOT component (instant damage)
  10. if MaxDOTVal ~= nil and MinDOTVal < MaxDOTVal then
  11. SpellDamage(Target, DOTType, math.random(MinDOTVal, MaxDOTVal))
  12. else
  13. SpellDamage(Target, DOTType, MinDOTVal)
  14. end
  15. end
  16. function tick(Caster, Target, DOTType, MinDOTVal, MaxDOTVal)
  17. if MaxDOTVal ~= nil and MinDOTVal < MaxDOTVal then
  18. SpellDamage(Target, DOTType, math.random(MinDOTVal, MaxDOTVal))
  19. else
  20. SpellDamage(Target, DOTType, MinDOTVal)
  21. end
  22. end
  23. function remove(Caster, Target, DOTType, MinDOTVal, MaxDOTVal)
  24. end