From ab7cad36d3ad9fe6a3ab050de2283d9ac7eb7948 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Fri, 9 Sep 2016 16:59:27 +0300 Subject: [PATCH] Change garrison and order hall detection method for objective tracker hadler --- ElvUI_SLE/modules/quests/quests.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ElvUI_SLE/modules/quests/quests.lua b/ElvUI_SLE/modules/quests/quests.lua index ef7fe3f..2bf4953 100644 --- a/ElvUI_SLE/modules/quests/quests.lua +++ b/ElvUI_SLE/modules/quests/quests.lua @@ -25,10 +25,10 @@ function Q:ChangeState(event) if T.InCombatLockdown() then self:RegisterEvent("PLAYER_REGEN_ENABLED", "ChangeState") return end if event == "PLAYER_REGEN_ENABLED" then self:UnregisterEvent("PLAYER_REGEN_ENABLED") end - if T.GetZoneText() == BL.Frostwall or T.GetZoneText() == BL.Lunarfall then + if C_Garrison.IsPlayerInGarrison(2) then statedriver[Q.db.visibility.garrison](Q.frame) --here be order halls - elseif T.GetRealZoneText() == _G["ORDER_HALL_"..E.myclass] then + elseif C_Garrison.IsPlayerInGarrison(3) then statedriver[Q.db.visibility.orderhall](Q.frame) elseif IsResting() then statedriver[Q.db.visibility.rested](Q.frame) -- 1.7.9.5