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
+8
View File
@@ -221,6 +221,14 @@ function BagScanner:ScanSlot(bagID, slot)
itemData.iLevel = iLevel
itemData.type = itemType
itemData.class = itemCategory
-- Override misclassified Quest items (e.g. Juju consumables) to Consumable
if itemCategory == "Quest" and itemLink and addon.Constants and addon.Constants.QUEST_CATEGORY_EXCLUSIONS then
local itemID = addon.Modules.Utils:ExtractItemID(itemLink)
if itemID and addon.Constants.QUEST_CATEGORY_EXCLUSIONS[itemID] then
itemData.class = "Consumable"
itemData.type = "Consumable"
end
end
itemData.subclass = itemSubType
itemData.equipSlot = itemEquipLoc
itemData.locked = locked