View Single Post
09-28-10, 11:55 AM   #10
Lane
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Jun 2005
Posts: 36
Place holder for when I get home:

Code:
local function getSpellTime(spell)
	local name, _, _, _, _, dur, exp, caster = UnitDebuff("target", spell)
	if name ~= nil and caster == "player" and name == spell then
	    --return math.ceil(exp - GetTime());
	    return string.format("%d", exp - GetTime());
	end
end