mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
[DeckListModel] Mark all cards in token zone as legal (#6551)
This commit is contained in:
parent
bfeb3a7ca9
commit
5a274fdbed
1 changed files with 4 additions and 1 deletions
|
|
@ -740,7 +740,10 @@ static bool isCardQuantityLegalForFormat(const QString &format, const CardInfo &
|
|||
|
||||
static bool isCardNodeLegalForFormat(const QString &format, const InnerDecklistNode *zone, const DecklistCardNode *card)
|
||||
{
|
||||
Q_UNUSED(zone)
|
||||
// Don't check legality for tokens
|
||||
if (zone->getName() == DECK_ZONE_TOKENS) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// unknown cards are not legal
|
||||
ExactCard exactCard = CardDatabaseManager::query()->getCard(card->toCardRef());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue