29d93c0 - change raid frame position as mage
[wowui.git] / OmaLog / Logging.lua
index 3bf3ed6..cf55148 100644 (file)
@@ -10,6 +10,8 @@ frame:Hide();
 local raidIDs = {
     [2164] = "The Eternal Palace",
     [2217] = "Ny'alotha",
+    [2296] = "Castle Nathria",
+    [2450] = "Sanctum of Domination",
 };
 local dungeonIDs = {
     [1594] = "The Undermine",
@@ -63,11 +65,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+