Commit a8031321 authored by Gavin Bisesi's avatar Gavin Bisesi
Browse files

Merge pull request #226 from arxanas/deckstats-multiple-cards

Fix #225: Multiples of cards are now sent to deckstats.
parents 39565898 68ac8d1a
...@@ -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