Minor bugfixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user