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:
@@ -21,7 +21,8 @@ function NP:Update_HealthColor(frame)
|
||||
local r, g, b
|
||||
local scale = 1
|
||||
|
||||
local classColor = E.media.herocolor
|
||||
local class = frame.UnitClass
|
||||
local classColor = RAID_CLASS_COLORS[class]
|
||||
local useClassColor = NP.db.units[frame.UnitType].health.useClassColor
|
||||
if classColor and ((frame.UnitType == "FRIENDLY_PLAYER" and useClassColor) or (frame.UnitType == "ENEMY_PLAYER" and useClassColor)) then
|
||||
r, g, b = classColor.r, classColor.g, classColor.b
|
||||
|
||||
Reference in New Issue
Block a user