mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-17 07:22:01 -08:00
braces are only left for split cards (#3217)
* braces are only left for split cards * condition for braces modified
This commit is contained in:
@@ -83,7 +83,7 @@ CardInfoPtr OracleImporter::addCard(const QString &setName,
|
||||
QStringList symbols = cardCost.split("}");
|
||||
QString formattedCardCost = QString();
|
||||
for (QString symbol : symbols) {
|
||||
if (symbol.contains(QRegExp("[BWUGR]/[BWUGR]"))) {
|
||||
if (symbol.contains(QRegExp("[0-9WUBGRP]/[0-9WUBGRP]"))) {
|
||||
symbol.append("}");
|
||||
} else {
|
||||
symbol.remove(QChar('{'));
|
||||
@@ -108,8 +108,8 @@ CardInfoPtr OracleImporter::addCard(const QString &setName,
|
||||
!cardText.contains(cardName + " enters the battlefield tapped unless"));
|
||||
|
||||
// insert the card and its properties
|
||||
card = CardInfo::newInstance(cardName, isToken, cardCost, cmc, cardType, cardPT, cardText, colors, relatedCards,
|
||||
reverseRelatedCards, upsideDown, cardLoyalty, cipt);
|
||||
card = CardInfo::newInstance(cardName, isToken, formattedCardCost, cmc, cardType, cardPT, cardText, colors,
|
||||
relatedCards, reverseRelatedCards, upsideDown, cardLoyalty, cipt);
|
||||
int tableRow = 1;
|
||||
QString mainCardType = card->getMainCardType();
|
||||
if ((mainCardType == "Land") || mArtifact)
|
||||
|
||||
Reference in New Issue
Block a user