From dbbb554735dbf0caa0d57be036606bc8ead3e221 Mon Sep 17 00:00:00 2001 From: BruebachL <44814898+BruebachL@users.noreply.github.com> Date: Mon, 15 Sep 2025 21:12:09 +0200 Subject: [PATCH] Only use normal layout cards as a background source. (#6152) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Took 11 minutes Co-authored-by: Lukas BrĂ¼bach --- cockatrice/src/client/ui/widgets/general/home_widget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cockatrice/src/client/ui/widgets/general/home_widget.cpp b/cockatrice/src/client/ui/widgets/general/home_widget.cpp index a6606b538..d3319d75a 100644 --- a/cockatrice/src/client/ui/widgets/general/home_widget.cpp +++ b/cockatrice/src/client/ui/widgets/general/home_widget.cpp @@ -89,7 +89,8 @@ void HomeWidget::updateRandomCard() case BackgroundSources::RandomCardArt: do { newCard = CardDatabaseManager::getInstance()->getRandomCard(); - } while (newCard == backgroundSourceCard->getCard()); + } while (newCard == backgroundSourceCard->getCard() && + newCard.getCardPtr()->getProperty("layout") != "normal"); break; case BackgroundSources::DeckFileArt: QList cardRefs = backgroundSourceDeck->getCardRefList();