-
Notifications
You must be signed in to change notification settings - Fork 3
/
wqtfilter.lua
39 lines (31 loc) · 1.04 KB
/
wqtfilter.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
if not WorldQuestTrackerAddon then return end
--[[local hook_enabled = false
local Hook_IsQuestCriteriaForBounty(questID, bountyQuestID)
if IsQuestCriteriaForBounty(questID, bountyQuestID) then
return true
end
if not hook_enabled then
return false
end
-- Nazjatar and Mechaon
if WorldMapFrame.mapID == 1355 or WorldMapFrame.mapID == 1462 then
return true
end
return false
end
local env = setmetatable({ IsQuestCriteriaForBounty = Hook_IsQuestCriteriaForBounty }, { __index = _G })
setfenv(WorldQuestTrackerAddon.UpdateWorldQuestsOnWorldMap, env)
hooksecurefunc(WorldQuestTrackerAddon, "BuildMapChildrenTable", function() hook_enabled = true end)
]]
local WQTFilter = LibStub("AceAddon-3.0"):GetAddon("NevMod"):NewModule("WQTFilter", "AceHook-3.0")
function WQTFilter:OnEnable()
WorldQuestTrackerAddon.db.profile.filter_force_show_brokenshore = true
WorldQuestTrackerAddon.IsArgusZone = function(mapID)
if mapID == 1355 then -- Nazjatar
return true
elseif mapID == 1462 then -- Mechagon
return true
end
return false
end
end