Consider removed cards.

Took 14 minutes
This commit is contained in:
Lukas Brübach 2026-06-15 00:50:51 +02:00
parent 0cfffdf9df
commit 815baa1ffd
8 changed files with 39 additions and 7 deletions

View file

@ -76,6 +76,10 @@ QMenu *PlayerMenu::updateCardMenu(const CardState *card)
return nullptr;
}
if (!player->getLogic()->getGame()->getActiveCard()) {
return nullptr;
}
// If is spectator (as spectators don't need card menus), return
// only update the menu if the card is actually selected
if ((player->getLogic()->getGame()->getPlayerManager()->isSpectator() &&