Bug fix: Color tables indexed improperly.

This commit is contained in:
salt-die
2022-10-30 22:26:33 -05:00
parent 6c2a2f145d
commit f92225c7cc
@@ -386,7 +386,7 @@ function UF:PostCastStart(unit)
elseif UF.db.colors.castClassColor and UnitIsPlayer(unit) then
local _, class = UnitClass(unit)
local t = UnitIsUnit("player", unit) and E.media.herocolor or RAID_CLASS_COLORS[class]
if t then r, g, b = t[1], t[2], t[3] end
if t then r, g, b = t.r, t.g, t.b end
elseif UF.db.colors.castReactionColor then
local Reaction = UnitReaction(unit, "player")
local t = Reaction and ElvUF.colors.reaction[Reaction]
@@ -414,7 +414,7 @@ function UF:PostCastInterruptible(unit)
elseif UF.db.colors.castClassColor and UnitIsPlayer(unit) then
local _, class = UnitClass(unit)
local t = UnitIsUnit("player", unit) and E.media.herocolor or RAID_CLASS_COLORS[class]
if t then r, g, b = t[1], t[2], t[3] end
if t then r, g, b = t.r, t.g, t.b end
elseif UF.db.colors.castReactionColor then
local Reaction = UnitReaction(unit, "player")
local t = Reaction and ElvUF.colors.reaction[Reaction]