fix(quest-tag): prefer live quest log tag over static QuestTag.lua data
Ascension sometimes reuses a Blizzard questId for custom content whose group/tag status differs from the original (e.g. 253 "Bride of the Embalmer" is a real group quest here but zeroed by QuestTag.lua for TBC+/WotLK clients). Once a quest is accepted, QuestieDB.GetQuestTagInfo now checks the live questLog entry's questTag before falling back to questTagCorrections and the static QuestTag.lua table. Compat.lua gains QuestTagNameToId, a reverse lookup built from questTagToName.
This commit is contained in:
@@ -1090,6 +1090,14 @@ local questTagToName = {
|
||||
[85] = "Heroic",
|
||||
}
|
||||
|
||||
-- Reverse lookup (tag name -> tag id), exposed so callers can convert the live
|
||||
-- questTag string returned by the game's own GetQuestLogTitle back into the
|
||||
-- numeric tag id used throughout Questie.
|
||||
QuestieCompat.QuestTagNameToId = {}
|
||||
for id, name in pairs(questTagToName) do
|
||||
QuestieCompat.QuestTagNameToId[name] = id
|
||||
end
|
||||
|
||||
-- Retrieves tag information about the quest.
|
||||
-- https://wowpedia.fandom.com/wiki/API_GetQuestTagInfo
|
||||
function QuestieCompat.GetQuestTagInfo(questId)
|
||||
|
||||
Reference in New Issue
Block a user