[DeckListModel] Mark all cards in token zone as legal (#6551)

This commit is contained in:
RickyRister 2026-01-23 02:35:36 -08:00 committed by GitHub
parent bfeb3a7ca9
commit 5a274fdbed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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());