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

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