mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
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:
parent
da8f57f397
commit
b282df2e27
1 changed files with 3 additions and 0 deletions
|
|
@ -334,6 +334,9 @@ int OracleImporter::importCardsFromSet(const CardSetPtr ¤tSet,
|
||||||
|
|
||||||
power = getStringPropertyFromMap(card, "power");
|
power = getStringPropertyFromMap(card, "power");
|
||||||
toughness = getStringPropertyFromMap(card, "toughness");
|
toughness = getStringPropertyFromMap(card, "toughness");
|
||||||
|
if (power.isEmpty() || toughness.isEmpty()){
|
||||||
|
ptSeparator = "";
|
||||||
|
}
|
||||||
if (!(power.isEmpty() && toughness.isEmpty())) {
|
if (!(power.isEmpty() && toughness.isEmpty())) {
|
||||||
properties.insert("pt", power + ptSeparator + toughness);
|
properties.insert("pt", power + ptSeparator + toughness);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue