mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 00:54:53 -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
|
|
@ -9,4 +9,5 @@ message Event_FlipCard {
|
|||
optional sint32 card_id = 2;
|
||||
optional string card_name = 3;
|
||||
optional bool face_down = 4;
|
||||
optional string card_provider_id = 5;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1324,6 +1324,7 @@ Server_Player::cmdFlipCard(const Command_FlipCard &cmd, ResponseContainer & /*rc
|
|||
event.set_card_id(card->getId());
|
||||
if (!faceDown) {
|
||||
event.set_card_name(card->getName().toStdString());
|
||||
event.set_card_provider_id(card->getProviderId().toStdString());
|
||||
}
|
||||
event.set_face_down(faceDown);
|
||||
ges.enqueueGameEvent(event, playerId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue