X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/328ab5f0155e1aba66a8b04ecbe76364e4f0dba1..47f7fb23bd02498d61971c26615acb0ad720a2ae:/OmaLog/Logging.lua diff --git a/OmaLog/Logging.lua b/OmaLog/Logging.lua index 2596879..f7554a3 100644 --- a/OmaLog/Logging.lua +++ b/OmaLog/Logging.lua @@ -8,7 +8,9 @@ local frame = CreateFrame("Frame", "OmaLogger"); frame:Hide(); local raidIDs = { - [1861] = "Uldir", + [2164] = "The Eternal Palace", + [2217] = "Ny'alotha", + [2296] = "Castle Nathria", }; local dungeonIDs = { [1594] = "The Undermine", @@ -39,8 +41,6 @@ local function shouldLog() elseif zoneType == "party" and dungeonIDs[mapID] then if difficulty == 8 or difficulty == 23 then return true; - elseif difficulty == 1 or difficulty == 2 then - return true; -- TODO remove logging from normal/hc after beta end end @@ -64,11 +64,12 @@ local function updateZone() end frame:SetScript("OnEvent", function(self, event) - if event == "ZONE_CHANGED_NEW_AREA" then + if event == "ZONE_CHANGED_NEW_AREA" or event == "PLAYER_LOGIN" then CTimerAfter(3, updateZone); elseif event == "CHALLENGE_MODE_START" then CTimerAfter(1, updateZone); end end); frame:RegisterEvent("ZONE_CHANGED_NEW_AREA"); +frame:RegisterEvent("PLAYER_LOGIN"); --frame:RegisterEvent("CHALLENGE_MODE_START"); -- for logging M+