fix: quest manual

This commit is contained in:
Salikh Gurgenidze
2026-01-04 17:41:30 +04:00
parent a5ce690813
commit a47828174d
2 changed files with 11 additions and 2 deletions
+3 -1
View File
@@ -206,10 +206,12 @@ function Utils:IsQuestItemTooltip(bagID, slotID)
if text then
local tl = string.lower(text)
-- Only match explicit quest markers to avoid misclassifying consumables/recipes
-- Include "manual" which some quest items use (same as ItemButton detection)
if string.find(tl, "quest starter") or
string.find(tl, "this item begins a quest") or
string.find(tl, "starts a quest") or
string.find(tl, "quest item") then
string.find(tl, "quest item") or
string.find(tl, "manual") then
return true
end
end
+8 -1
View File
@@ -54,7 +54,14 @@ function Guda_CategorizeItem(itemData, bagID, slotID, categories, specialItems,
end
-- Priority 3: Quest Items
if (not isOtherChar and addon.Modules.Utils:IsQuestItemTooltip(bagID, slotID)) or itemData.class == "Quest" then
-- Check multiple sources: tooltip scan, itemClass, and itemType (same logic as ItemButton display)
local isQuestItem = false
if itemData.class == "Quest" or itemData.type == "Quest" then
isQuestItem = true
elseif not isOtherChar then
isQuestItem = addon.Modules.Utils:IsQuestItemTooltip(bagID, slotID)
end
if isQuestItem then
table.insert(categories["Quest"], {bagID = bagID, slotID = slotID, itemData = itemData})
return
end