diff --git a/LegionWA/AutoLoot/Init.lua b/LegionWA/AutoLoot/Init.lua index 9196619..9523cdc 100644 --- a/LegionWA/AutoLoot/Init.lua +++ b/LegionWA/AutoLoot/Init.lua @@ -185,13 +185,13 @@ local valueFilter = { local greyValueFilter = { enabled = true, -- Set threshold to 0 to loot all greys - valueThreshold = 5 * 100 * 100, + valueThreshold = 4 * 100 * 100, applyThresholdToItemStack = false, filter = function(self, slot) if (self.enabled) then aura_env.debugLog("Grey value filter; slot: " .. slot) local itemQuality = getItemQuality(slot) - if (itemQuality and itemQuality > 0) then + if (itemQuality and itemQuality == 0) then local itemValue = getItemValue(slot) if (self.applyThresholdToItemStack) then diff --git a/LegionWA/AutoLootDisplay/Init.lua b/LegionWA/AutoLootDisplay/Init.lua index 4b8eea8..50bab34 100644 --- a/LegionWA/AutoLootDisplay/Init.lua +++ b/LegionWA/AutoLootDisplay/Init.lua @@ -4,8 +4,11 @@ aura_env.getItemInfo = function(msg) local name = msg:match("h%[(.+)%]") or "" local quantity = msg:match("x(%d+)") or 1 - local icon = WeakAurasSaved.Cyka.ItemCache[name].icon or 134400 - local color = msg:match("%|cff(.){6}") or "ffffff" + local icon = 134400 + if WeakAurasSaved.Cyka.ItemCache[name] then + icon = WeakAurasSaved.Cyka.ItemCache[name].icon + end + local color = msg:match("cff(%w%w%w%w%w%w)") or "ffffff" return name, icon, quantity, color end