Try this:
Lua Code:
local t=CreateFrame("FRAME")
t:SetPoint("RIGHT",TargetFrame,12,12)
t:SetSize(30,30)
t.c=CreateFrame("Cooldown","cd1")
t.c:SetAllPoints(t)
t.t=t:CreateTexture(nil,"BORDER")
t.t:SetAllPoints()
t.t:SetTexture("Interface\\Icons\\spell_holy_divinepurpose")
t:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
t:Hide()
t:SetScript("OnEvent", function(...)
local b,_,_,e,_,_,_,_,_,_,l = select(4, ...)
if (e == UnitName("Player") and (b=="SPELL_AURA_REMOVED")and l==126705)
then t:Show() CooldownFrame_SetTimer(cd1,GetTime(),45,1)
C_Timer.After(45, function() t:Hide() end)
return
end
end)