Change all use of heroclass to use RAID_CLASS_COLORS instead. This can be changed to CUSTOM_CLASS_COLORS later with a color picker for each class, but to support CoA classes need to go back to being colored properly.
Fix remaining lua errors covered by ascension patches Add Addon Skins Add Enhanced Friends List
This commit is contained in:
@@ -384,7 +384,8 @@ function UF:PostCastStart(unit)
|
||||
if (self.notInterruptible and unit ~= "player") and UnitCanAttack("player", unit) then
|
||||
r, g, b = colors.castNoInterrupt[1], colors.castNoInterrupt[2], colors.castNoInterrupt[3]
|
||||
elseif UF.db.colors.castClassColor and UnitIsPlayer(unit) then
|
||||
local t = E.media.herocolor
|
||||
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
|
||||
elseif UF.db.colors.castReactionColor then
|
||||
local Reaction = UnitReaction(unit, "player")
|
||||
@@ -411,7 +412,8 @@ function UF:PostCastInterruptible(unit)
|
||||
if self.notInterruptible and UnitCanAttack("player", unit) then
|
||||
r, g, b = colors.castNoInterrupt[1], colors.castNoInterrupt[2], colors.castNoInterrupt[3]
|
||||
elseif UF.db.colors.castClassColor and UnitIsPlayer(unit) then
|
||||
local t = E.media.herocolor
|
||||
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
|
||||
elseif UF.db.colors.castReactionColor then
|
||||
local Reaction = UnitReaction(unit, "player")
|
||||
|
||||
@@ -186,7 +186,7 @@ function UF:FrameGlow_SetGlowColor(glow, unit, which)
|
||||
if isPlayer then
|
||||
local _, class = UnitClass(unit)
|
||||
if class then
|
||||
local color = E.media.herocolor
|
||||
local color = UnitIsUnit("player", unit) and E.media.herocolor or RAID_CLASS_COLORS[class]
|
||||
if color then
|
||||
r, g, b = color.r, color.g, color.b
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user