3 local line = CreateFrame("Frame", "OmaLine", UIParent);
4 local playerGuid = nil;
6 local function clog(ts, event, _, _, _, _, _, dest, _, _, _, spellid, ...)
7 if event == "SPELL_AURA_APPLIED" and spellid == 312406 and dest == playerGuid then
9 elseif event == "SPELL_AURA_REMOVED" and spellid == 312406 and dest == playerGuid then
14 local function lineConf()
15 line:SetPoint("CENTER", UIParent, "CENTER", 0, 100);
18 line.base = line:CreateTexture(nil, "BACKGROUND");
19 line.base:SetAllPoints();
20 line.base:SetColorTexture(1, 1, 1, 0.85);
23 playerGuid = UnitGUID("player");
24 line:UnregisterAllEvents();
25 line:SetScript("OnEvent", function()
26 return clog(CombatLogGetCurrentEventInfo());
28 line:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED");
31 line:SetScript("OnEvent", lineConf);
32 line:RegisterEvent("PLAYER_LOGIN");