diff --git a/AtlasLootClassic/Addons/Favourites.lua b/AtlasLootClassic/Addons/Favourites.lua index 9493dc97..e48886a8 100644 --- a/AtlasLootClassic/Addons/Favourites.lua +++ b/AtlasLootClassic/Addons/Favourites.lua @@ -919,6 +919,12 @@ function Favourites:IsItemEquippedOrObsolete(itemId, listId) return obsoleteType end end + for listId, listData in pairs(self.globalDb.lists) do + local obsoleteType = self:IsItemEquippedOrObsolete(itemId, listId) + if obsoleteType then + return obsoleteType + end + end return false end if ListBiSCache[listId] then diff --git a/AtlasLootClassic/Addons/Favourites_GUI.lua b/AtlasLootClassic/Addons/Favourites_GUI.lua index 1b5ccac9..9a4b34f1 100644 --- a/AtlasLootClassic/Addons/Favourites_GUI.lua +++ b/AtlasLootClassic/Addons/Favourites_GUI.lua @@ -323,7 +323,9 @@ local function SlotButton_SetSlotItem(self, itemID) self.modelFrame:TryOn("item:"..itemID) end end - local obsoleteType = Favourites:IsItemEquippedOrObsolete(itemID) + local db = Favourites:GetDb() + local listId = db.activeList[1] + local obsoleteType = Favourites:IsItemEquippedOrObsolete(itemID, listId) if obsoleteType then if obsoleteType == "obsolete" then self.ownedItem:SetVertexColor(0.6, 0.6, 0.6) -- Darken items that are obsolete but not owned a bit @@ -900,4 +902,4 @@ function GUI:SelectSlot(slotID) GUI.selectedSlot = nil end ShowItemList(slotID) -end \ No newline at end of file +end