mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-22 02:12:14 -07:00
Set the uuid when we set the cardName, in terms of hidden zones.
This commit is contained in:
parent
dfb34b86a6
commit
870c072b6d
1 changed files with 1 additions and 2 deletions
|
|
@ -580,15 +580,14 @@ Response::ResponseCode Server_Player::moveCard(GameEventStorage &ges,
|
|||
startzone->getType() != ServerInfo_Zone::HiddenZone) {
|
||||
eventPrivate.set_card_id(oldCardId);
|
||||
eventPrivate.set_new_card_id(card->getId());
|
||||
eventPrivate.set_new_card_uuid(card->getUUID().toStdString());
|
||||
} else {
|
||||
eventPrivate.set_card_id(-1);
|
||||
eventPrivate.set_new_card_id(-1);
|
||||
eventPrivate.set_new_card_uuid(QString("").toStdString());
|
||||
}
|
||||
if (sourceKnownToPlayer || !(faceDown || targetzone->getType() == ServerInfo_Zone::HiddenZone)) {
|
||||
QString privateCardName = card->getName();
|
||||
eventPrivate.set_card_name(privateCardName.toStdString());
|
||||
eventPrivate.set_new_card_uuid(card->getUUID().toStdString());
|
||||
}
|
||||
if (startzone->getType() == ServerInfo_Zone::HiddenZone) {
|
||||
eventPrivate.set_position(position);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue