local UnitGroupRolesAssigned = UnitGroupRolesAssigned; local CompactRaidFrameContainer_ApplyToFrames = CompactRaidFrameContainer_ApplyToFrames; -- TODO remove 1px border hooksecurefunc("CompactRaidFrameContainer_LayoutFrames", function(frame) if not frame then return end CompactRaidFrameContainer_ApplyToFrames(frame, "normal", function(frame) if not frame or not frame.unit then return end local role = UnitGroupRolesAssigned(frame.unit); local options = DefaultCompactUnitFrameSetupOptions; if options.displayPowerBar and role ~= "HEALER" then -- Fix healthbar size frame.healthBar:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", -1, 1); frame.powerBar:Hide(); -- Fix borders if options.displayBorder then frame.horizDivider:Hide(); end end end); end);