9
3

Gash.lua 949 B

12345678910111213141516171819202122232425262728293031
  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, EffectType, DDType, MinDDVal, MaxDDVal)
  8. -- NoDD is a 0/1 bool flag to perform the remove() component
  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, EffectType, DDType, MinDDVal, MaxDDVal)
  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, EffectType, DDType, MinDDVal, MaxDDVal)
  24. SpellDamage(Target, DOTType, math.random(8, 14))
  25. end