--[[
	Script Name	: dot.lua
	Script Purpose	: Generic Damage Over Time script
	Script Author	: John Adams
	Script Date	: 2008.12.04
--]]

function cast(Caster, Target, DOTType, MinDOTVal, MaxDOTVal)

	-- DOT component (instant damage)
	if MaxDOTVal ~= nil and MinDOTVal < MaxDOTVal then

		SpellDamage(Target, DOTType, math.random(MinDOTVal, MaxDOTVal))

	else

		SpellDamage(Target, DOTType, MinDOTVal)

	end

end

function tick(Caster, Target, DOTType, MinDOTVal, MaxDOTVal)

	if MaxDOTVal ~= nil and MinDOTVal < MaxDOTVal then

		SpellDamage(Target, DOTType, math.random(MinDOTVal, MaxDOTVal))

	else

		SpellDamage(Target, DOTType, MinDOTVal)

	end

end

function remove(Caster, Target, DOTType, MinDOTVal, MaxDOTVal)

end
