local format = string.format
hooksecurefunc("CompactUnitFrame_UpdateStatusText", function(frame)
- if frame and not frame:IsForbidden() and frame:GetName():match("^CompactRaidFrame%d") then
+ -- allowClassColorsForNPCs only in regular raid frames,
+ -- match only to them
+ if frame.optionTable.allowClassColorsForNPCs ~= nil then
-- conditions taken from CompactUnitFrame.lua
if not UnitIsConnected(frame.unit) or UnitIsDeadOrGhost(frame.displayedUnit) then
return;