mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
- CardItems have dummy CardInfos if they arent in the database (#3589)
- If a CardInfo has no sets, add a dummy one to try to download it by non-set specific templates.
This commit is contained in:
parent
c2150fd9bd
commit
e68305d7bf
3 changed files with 12 additions and 3 deletions
|
|
@ -1514,7 +1514,7 @@ void Player::eventCreateToken(const Event_CreateToken &event)
|
|||
if (!QString::fromStdString(event.pt()).isEmpty()) {
|
||||
card->setPT(QString::fromStdString(event.pt()));
|
||||
} else {
|
||||
CardInfoPtr dbCard = db->getCard(QString::fromStdString(event.card_name()));
|
||||
CardInfoPtr dbCard = card->getInfo();
|
||||
if (dbCard) {
|
||||
card->setPT(dbCard->getPowTough());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue