+ if class == "DEATHKNIGHT" then
+ frame.isdk = true;
+ else
+ frame.isdk = nil;
+ end
+
+ if color then
+ if not frame.raid then
+ if not UnitPlayerControlled(unit) and UnitIsTapDenied(unit) then
+ frame.health:SetVertexColor(0.5, 0.5, 0.5);
+ elseif UnitIsPlayer(unit) then
+ frame.health:SetVertexColor(color.r, color.g, color.b);
+ elseif UnitPlayerControlled(unit) then
+ frame.health:SetVertexColor(0, 1, 0);
+ else
+ frame.health:SetVertexColor(UnitSelectionColor(unit));
+ end
+ else
+ frame.name:SetVertexColor(color.r, color.g, color.b);
+ end
+ end