mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 16:24:45 -07:00
Fix turning cards face-up not having correct printing (#6043)
This commit is contained in:
parent
b9f16e8cce
commit
4fd2f1f974
3 changed files with 5 additions and 3 deletions
|
|
@ -2472,10 +2472,10 @@ void Player::eventFlipCard(const Event_FlipCard &event)
|
|||
return;
|
||||
}
|
||||
|
||||
QString cardName = QString::fromStdString(event.card_name());
|
||||
if (!event.face_down()) {
|
||||
// TODO: also set providerId
|
||||
card->setCardRef({cardName});
|
||||
QString cardName = QString::fromStdString(event.card_name());
|
||||
QString providerId = QString::fromStdString(event.card_provider_id());
|
||||
card->setCardRef({cardName, providerId});
|
||||
}
|
||||
|
||||
emit logFlipCard(this, card->getName(), event.face_down());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue