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

Fix #225: Multiples of cards are now sent to deckstats.
This commit is contained in:
Gavin Bisesi 2014-07-23 15:38:09 -04:00
commit a8031321c6

View file

@ -88,7 +88,11 @@ struct CopyIfNotAToken {
const DecklistCardNode *card
) const {
if (!cardDatabase.getCard(card->getName())->getIsToken()) {
destination.addCard(card->getName(), node->getName());
DecklistCardNode *addedCard = destination.addCard(
card->getName(),
node->getName()
);
addedCard->setNumber(card->getNumber());
}
}
};