Commit fc79113f authored by Blazeflack's avatar Blazeflack

Fixed incompatibility issue with ElvUI v10.82 and lower

parent 2419582e
......@@ -203,7 +203,11 @@ function VAT:UpdateAura(button, index)
local color = E.db.VAT.staticColor
r, g, b = VAT:GetStaticColor(color.r, color.g, color.b) --Checks for class color match
else
r, g, b = ElvUF:ColorGradient(timeLeft, duration or 0, 0.8,0,0,0.8,0.8,0,0,0.8,0)
if tonumber(E.version) and tonumber(E.version) < 10.83 then
r, g, b = ElvUF.ColorGradient(timeLeft, duration or 0, 0.8,0,0,0.8,0.8,0,0,0.8,0)
else
r, g, b = ElvUF:ColorGradient(timeLeft, duration or 0, 0.8,0,0,0.8,0.8,0,0,0.8,0)
end
end
button.Bar:SetStatusBarColor(r, g, b)
end
......@@ -317,7 +321,11 @@ function VAT:UpdateTempEnchant(button, index)
local color = E.db.VAT.staticColor
r, g, b = VAT:GetStaticColor(color.r, color.g, color.b) --Checks for class color match
else
r, g, b = ElvUF:ColorGradient(timeLeft, duration or 0, 0.8,0,0,0.8,0.8,0,0,0.8,0)
if tonumber(E.version) and tonumber(E.version) < 10.83 then
r, g, b = ElvUF:ColorGradient(timeLeft, duration or 0, 0.8,0,0,0.8,0.8,0,0,0.8,0)
else
r, g, b = ElvUF:ColorGradient(timeLeft, duration or 0, 0.8,0,0,0.8,0.8,0,0,0.8,0)
end
end
button.Bar:SetStatusBarColor(r, g, b)
local quality = GetInventoryItemQuality("player", index)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment