braces are only left for split cards (#3217)
* braces are only left for split cards * condition for braces modified
This commit is contained in:
parent
2520d07ef2
commit
9727699e26
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue