Change garrison and order hall detection method for objective tracker hadler
Darthpred [09-09-16 - 13:59]
Change garrison and order hall detection method for objective tracker hadler
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)