fix: auto sell junk items

This commit is contained in:
Vati
2026-02-28 04:13:23 +04:00
parent 4fdd2ea052
commit 88ce45b045
6 changed files with 190 additions and 3 deletions
+6 -2
View File
@@ -241,8 +241,12 @@ local function DetectJunk(lines, itemData)
end
end
-- White equippable items might be junk
if quality == 1 and (itemClass == "Weapon" or itemClass == "Armor") then
-- White equippable items might be junk (only if whiteItemsJunk setting is enabled)
local whiteItemsJunk = false
if addon and addon.Modules and addon.Modules.DB then
whiteItemsJunk = addon.Modules.DB:GetSetting("whiteItemsJunk")
end
if quality == 1 and whiteItemsJunk and (itemClass == "Weapon" or itemClass == "Armor") then
-- Exclusions: trinkets, rings, necklaces, tabards, shirts
local subLower = string.lower(itemSubclass)
if string.find(subLower, "trinket") or