Minor bugfixes

This commit is contained in:
M. David
2022-08-19 14:27:12 +02:00
parent 25174c050e
commit 84e211bbe5
2 changed files with 7 additions and 4 deletions

View File

@@ -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

View File

@@ -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