From 8084ab605f418508374639b965a9d3c83ffd3736 Mon Sep 17 00:00:00 2001 From: Vafthrudnir Date: Tue, 13 Feb 2018 00:04:11 +0100 Subject: [PATCH] Tablerow fixed for non-mana generating artifacts (#3104) --- oracle/src/oracleimporter.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/oracle/src/oracleimporter.cpp b/oracle/src/oracleimporter.cpp index 4d0937c2..1c77a24b 100644 --- a/oracle/src/oracleimporter.cpp +++ b/oracle/src/oracleimporter.cpp @@ -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 =