Squall.lua 766 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. -- DOT component (instant damage)
  9. if MaxDOTVal ~= nil and MinDOTVal < MaxDOTVal then
  10. SpellDamage(Target, DOTType, math.random(MinDOTVal, MaxDOTVal))
  11. else
  12. SpellDamage(Target, DOTType, MinDOTVal)
  13. end
  14. end
  15. function tick(Caster, Target, DOTType, MinDOTVal, MaxDOTVal)
  16. if MaxDOTVal ~= nil and MinDOTVal < MaxDOTVal then
  17. SpellDamage(Target, DOTType, math.random(MinDOTVal, MaxDOTVal))
  18. else
  19. SpellDamage(Target, DOTType, MinDOTVal)
  20. end
  21. end
  22. function remove(Caster, Target, DOTType, MinDOTVal, MaxDOTVal)
  23. end