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
This commit is contained in:
parent
35fe6f624c
commit
48c6458766
1 changed files with 1 additions and 14 deletions
|
@ -146,23 +146,10 @@ CardInfoPtr OracleImporter::addCard(QString name,
|
||||||
(text.contains(name + " enters the battlefield tapped") &&
|
(text.contains(name + " enters the battlefield tapped") &&
|
||||||
!text.contains(name + " enters the battlefield tapped unless"));
|
!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
|
// table row
|
||||||
int tableRow = 1;
|
int tableRow = 1;
|
||||||
QString mainCardType = properties.value("maintype").toString();
|
QString mainCardType = properties.value("maintype").toString();
|
||||||
if ((mainCardType == "Land") || mArtifact)
|
if ((mainCardType == "Land"))
|
||||||
tableRow = 0;
|
tableRow = 0;
|
||||||
else if ((mainCardType == "Sorcery") || (mainCardType == "Instant"))
|
else if ((mainCardType == "Sorcery") || (mainCardType == "Instant"))
|
||||||
tableRow = 3;
|
tableRow = 3;
|
||||||
|
|
Loading…
Reference in a new issue