fix: juju powers as consumables

This commit is contained in:
Vati
2026-02-26 21:47:12 +04:00
parent 09bc895b5c
commit b07ea69994
7 changed files with 161 additions and 42 deletions
+11
View File
@@ -172,6 +172,17 @@ local function DetectQuestItem(lines, itemData)
local isQuestItem = false
local isQuestStarter = false
-- Early exit: exclude known non-quest items misclassified by the API
if itemData and itemData.link and addon.Constants and addon.Constants.QUEST_CATEGORY_EXCLUSIONS then
local _, _, idStr = string.find(itemData.link, "item:(%d+)")
if idStr then
local id = tonumber(idStr)
if id and addon.Constants.QUEST_CATEGORY_EXCLUSIONS[id] then
return false, false
end
end
end
-- Check item category first
if itemData and itemData.class == "Quest" then
isQuestItem = true