Skip to content

Commit

Permalink
Fixed warbound itens showing as loot in the M+ end panel
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Sep 29, 2024
1 parent 18c7e06 commit 5527897
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frames/window_mythicplus/window_end_of_run.lua
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@ lootFrame:SetScript("OnEvent", function(self, event, ...)
if (instanceType == "party" or CONST_DEBUG_MODE) then
local effectiveILvl, nop, baseItemLevel = GetDetailedItemLevelInfo(itemLink)

local bIsAccountBound = C_Item.IsItemBindToAccountUntilEquip(itemLink)

local itemName, itemLink, itemQuality, itemLevel, itemMinLevel, itemType, itemSubType,
itemStackCount, itemEquipLoc, itemTexture, sellPrice, classID, subclassID, bindType,
expacID, setID, isCraftingReagent = GetItemInfo(itemLink)
Expand All @@ -293,7 +295,7 @@ lootFrame:SetScript("OnEvent", function(self, event, ...)
Details222.DebugMsg("Loot Received:", unitName, itemLink, effectiveILvl, itemQuality, baseItemLevel, "itemType:", itemType, "itemSubType:", itemSubType, "itemEquipLoc:", itemEquipLoc)
end

if (effectiveILvl > 300 and baseItemLevel > 5) then --avoid showing loot that isn't items
if (effectiveILvl > 480 and baseItemLevel > 5 and not bIsAccountBound) then --avoid showing loot that isn't items
lootFrame.LootCache[unitName] = lootFrame.LootCache[unitName] or {}
---@type details_loot_cache
local lootCacheTable = {
Expand Down Expand Up @@ -321,7 +323,7 @@ lootFrame:SetScript("OnEvent", function(self, event, ...)
end
else
if (LOOT_DEBUG_MODE) then
Details:Msg("Loot SKIPPED:", unitName, itemLink, effectiveILvl, itemQuality, baseItemLevel)
Details:Msg("Loot SKIPPED:", unitName, itemLink, effectiveILvl, itemQuality, baseItemLevel, bIsAccountBound)
end
end
end
Expand Down

0 comments on commit 5527897

Please sign in to comment.