Skip to content

Commit

Permalink
Fixed an issue where no faction for Dragonflight was detected
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Aug 25, 2024
1 parent c3308e9 commit ec9113d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WorldQuestTracker_Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2223,7 +2223,7 @@ WorldQuestTracker.OnToggleWorldMap = function(self)
factionButton:ClearAllPoints()
local mapId = WorldQuestTracker.GetCurrentMapAreaID()
local factionsOfTheMap = WorldQuestTracker.GetFactionsAllowedOnMap(mapId)

--dumpt(factionsOfTheMap) = none
if (factionsOfTheMap) then
if (factionsOfTheMap[factionButton.FactionID]) then
if (anchorSide == "left") then
Expand Down Expand Up @@ -2419,7 +2419,7 @@ WorldQuestTracker.OnToggleWorldMap = function(self)
end
end

--create buttons
--create buttons, one for each faction, amount of buttons created is around ~42 button
for factionID, _ in pairs(WorldQuestTracker.MapData.AllFactionIds) do --creates one button for each faction registered
if (type(factionID) == "number") then
local factionName = WorldQuestTracker.GetFactionDataByID(factionID)
Expand Down
1 change: 1 addition & 0 deletions WorldQuestTracker_IDs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,7 @@ local LegionFactions = {
WorldQuestTracker.MapData.ReputationByMap = {
--world maps
[zoneIDs.KHAZALGAR] = WOW11Factions,
[zoneIDs.DRAGONISLES] = DragonflightFactions,
[zoneIDs.THESHADOWLANDS] = ShadowlandsFactions,
[zoneIDs.KULTIRAS] = BFAFactions,
[zoneIDs.ZANDALAR] = BFAFactions,
Expand Down

0 comments on commit ec9113d

Please sign in to comment.