mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-30 02:23:55 -07:00
Consider removed cards.
Took 14 minutes
This commit is contained in:
parent
0cfffdf9df
commit
815baa1ffd
8 changed files with 39 additions and 7 deletions
|
|
@ -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() &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue