Commit 68ac8d1a authored by Waleed Khan's avatar Waleed Khan
Browse files

Fix #225: Multiples of cards are now sent to deckstats.

parent feaa3f50
...@@ -88,7 +88,11 @@ struct CopyIfNotAToken { ...@@ -88,7 +88,11 @@ struct CopyIfNotAToken {
const DecklistCardNode *card const DecklistCardNode *card
) const { ) const {
if (!cardDatabase.getCard(card->getName())->getIsToken()) { if (!cardDatabase.getCard(card->getName())->getIsToken()) {
destination.addCard(card->getName(), node->getName()); DecklistCardNode *addedCard = destination.addCard(
card->getName(),
node->getName()
);
addedCard->setNumber(card->getNumber());
} }
} }
}; };
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment