Tablerow fixed for non-mana generating artifacts (#3104)

This commit is contained in:
Vafthrudnir 2018-02-13 00:04:11 +01:00 committed by Zach H
parent af5a04abf1
commit 8084ab605f

View file

@ -84,10 +84,14 @@ CardInfoPtr OracleImporter::addCard(const QString &setName,
// detect mana generator artifacts
bool mArtifact = false;
if (cardType.endsWith("Artifact"))
for (int i = 0; i < cardTextRows.size(); ++i)
if (cardTextRows[i].contains("{T}") && cardTextRows[i].contains("to your mana pool"))
if (cardType.endsWith("Artifact")) {
for (int i = 0; i < cardTextRows.size(); ++i) {
cardTextRows[i].remove(QRegularExpression("\\\".*?\\\""));
if (cardTextRows[i].contains("{T}") && cardTextRows[i].contains("to your mana pool")) {
mArtifact = true;
}
}
}
// detect cards that enter the field tapped
bool cipt =