mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-06 21:43:55 -07:00
fix prepare cards
This commit is contained in:
parent
9aa5702e14
commit
48a8b0c9ef
1 changed files with 2 additions and 2 deletions
|
|
@ -360,13 +360,13 @@ int OracleImporter::importCardsFromSet(const CardSetPtr ¤tSet, const QList
|
||||||
}
|
}
|
||||||
|
|
||||||
// split cards are considered a single card, enqueue for later merging
|
// split cards are considered a single card, enqueue for later merging
|
||||||
if (layout == "split" || layout == "aftermath" || layout == "adventure") {
|
if (layout == "split" || layout == "aftermath" || layout == "adventure" || layout == "prepare") {
|
||||||
auto _faceName = getStringPropertyFromMap(card, "faceName");
|
auto _faceName = getStringPropertyFromMap(card, "faceName");
|
||||||
SplitCardPart split(_faceName, text, properties, printingInfo);
|
SplitCardPart split(_faceName, text, properties, printingInfo);
|
||||||
auto found_iter = splitCards.find(name + numProperty);
|
auto found_iter = splitCards.find(name + numProperty);
|
||||||
if (found_iter == splitCards.end()) {
|
if (found_iter == splitCards.end()) {
|
||||||
splitCards.insert(name + numProperty, {{split}, name});
|
splitCards.insert(name + numProperty, {{split}, name});
|
||||||
} else if (layout == "adventure") {
|
} else if (layout == "adventure" || layout == "prepare") {
|
||||||
found_iter->first.insert(0, split);
|
found_iter->first.insert(0, split);
|
||||||
} else {
|
} else {
|
||||||
found_iter->first.append(split);
|
found_iter->first.append(split);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue