Fixed ptSeparation oracle issue (#4728)

* Fixed psTeparation oracle issue

* Update oracle/src/oracleimporter.cpp

Co-authored-by: PakhomCh <pakhomch@gmail.com>
This commit is contained in:
PakhomCh
2023-01-16 21:30:19 +03:00
committed by GitHub
parent da8f57f397
commit b282df2e27

View File

@@ -334,6 +334,9 @@ int OracleImporter::importCardsFromSet(const CardSetPtr &currentSet,
power = getStringPropertyFromMap(card, "power");
toughness = getStringPropertyFromMap(card, "toughness");
if (power.isEmpty() || toughness.isEmpty()){
ptSeparator = "";
}
if (!(power.isEmpty() && toughness.isEmpty())) {
properties.insert("pt", power + ptSeparator + toughness);
}