/trunk/RDX/RosterMgr
-- see the roster cooldown folder. |
local function ParseSpellSuccess(timestamp, event, sourceGUID, sourceName, sourceFlags, destGUID, destName, destFlags, spellid, spellname) |
if (event == "SPELL_CAST_SUCCESS") then |
if (event == "SPELL_CAST_SUCCESS") or (event == "SPELL_ENERGIZE") then |
local unit = _rtouched[strlower(sourceName)]; |
if unit then |
--local cd = {spellname = spellname, spellid = spellid, duration = cdInfo.duration, start = GetTime()}; |
GameTooltip:SetOwner(frame, "ANCHOR_NONE"); |
GameTooltip:SetPoint("TOPLEFT", frame, anchor, 0, 20); |
GameTooltip:ClearLines(); |
GameTooltip:AddDoubleLine(cdtmp.text, cdtmp.duration); |
--GameTooltip:AddLine(meta.descr, 1, 1, 1, 1, true); |
GameTooltip:AddDoubleLine(cdtmp.text, RDXU.CooldownDB[spellid] or cdtmp.duration); |
GameTooltip:Show(); |
end |
end |