Tablerow fixed for non-mana generating artifacts (#3104)
This commit is contained in:
parent
af5a04abf1
commit
8084ab605f
1 changed files with 7 additions and 3 deletions
|
@ -84,10 +84,14 @@ CardInfoPtr OracleImporter::addCard(const QString &setName,
|
||||||
|
|
||||||
// detect mana generator artifacts
|
// detect mana generator artifacts
|
||||||
bool mArtifact = false;
|
bool mArtifact = false;
|
||||||
if (cardType.endsWith("Artifact"))
|
if (cardType.endsWith("Artifact")) {
|
||||||
for (int i = 0; i < cardTextRows.size(); ++i)
|
for (int i = 0; i < cardTextRows.size(); ++i) {
|
||||||
if (cardTextRows[i].contains("{T}") && cardTextRows[i].contains("to your mana pool"))
|
cardTextRows[i].remove(QRegularExpression("\\\".*?\\\""));
|
||||||
|
if (cardTextRows[i].contains("{T}") && cardTextRows[i].contains("to your mana pool")) {
|
||||||
mArtifact = true;
|
mArtifact = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// detect cards that enter the field tapped
|
// detect cards that enter the field tapped
|
||||||
bool cipt =
|
bool cipt =
|
||||||
|
|
Loading…
Reference in a new issue