From b282df2e275ecf0934981a23d3f585f97fc42e0b Mon Sep 17 00:00:00 2001 From: PakhomCh <37024644+PakhomCh@users.noreply.github.com> Date: Mon, 16 Jan 2023 21:30:19 +0300 Subject: [PATCH] Fixed ptSeparation oracle issue (#4728) * Fixed psTeparation oracle issue * Update oracle/src/oracleimporter.cpp Co-authored-by: PakhomCh --- oracle/src/oracleimporter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/oracle/src/oracleimporter.cpp b/oracle/src/oracleimporter.cpp index d969b6dc..1ae718c2 100644 --- a/oracle/src/oracleimporter.cpp +++ b/oracle/src/oracleimporter.cpp @@ -334,6 +334,9 @@ int OracleImporter::importCardsFromSet(const CardSetPtr ¤tSet, 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); }