mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-23 15:13:55 -07:00
Fix #225: Multiples of cards are now sent to deckstats.
This commit is contained in:
parent
feaa3f5052
commit
68ac8d1a33
1 changed files with 5 additions and 1 deletions
|
|
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue