From 48c64587661fd8e9b79ecae3bac2615058804427 Mon Sep 17 00:00:00 2001 From: ebbit1q Date: Fri, 2 Oct 2020 18:14:44 +0200 Subject: [PATCH] remove nonfunctional mana artifact detection code (#4121) mana artifacts will use the stack and be placed in the normal tablerow if you want to put it with your lands you're free to do so, as long as you promise to not say oh this should not be here three turns after shatterstorm resolved --- oracle/src/oracleimporter.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/oracle/src/oracleimporter.cpp b/oracle/src/oracleimporter.cpp index ebad7128..468aa0b0 100644 --- a/oracle/src/oracleimporter.cpp +++ b/oracle/src/oracleimporter.cpp @@ -146,23 +146,10 @@ CardInfoPtr OracleImporter::addCard(QString name, (text.contains(name + " enters the battlefield tapped") && !text.contains(name + " enters the battlefield tapped unless")); - // detect mana generator artifacts - QStringList cardTextRows = text.split("\n"); - bool mArtifact = false; - QString cardType = properties.value("type").toString(); - if (cardType.endsWith("Artifact")) { - for (int i = 0; i < cardTextRows.size(); ++i) { - cardTextRows[i].remove(QRegularExpression(R"(\".*?\")")); - if (cardTextRows[i].contains("{T}") && cardTextRows[i].contains("to your mana pool")) { - mArtifact = true; - } - } - } - // table row int tableRow = 1; QString mainCardType = properties.value("maintype").toString(); - if ((mainCardType == "Land") || mArtifact) + if ((mainCardType == "Land")) tableRow = 0; else if ((mainCardType == "Sorcery") || (mainCardType == "Instant")) tableRow = 3;