mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-21 18:02:14 -07:00
Update Player::MoveCard to include the card UUID.
This commit is contained in:
parent
121e789716
commit
dfb34b86a6
1 changed files with 3 additions and 0 deletions
|
|
@ -2168,6 +2168,9 @@ void Player::eventMoveCard(const Event_MoveCard &event, const GameEventContext &
|
|||
if (event.has_card_name()) {
|
||||
card->setName(QString::fromStdString(event.card_name()));
|
||||
}
|
||||
if (event.has_new_card_uuid()) {
|
||||
card->setUUID(QString::fromStdString(event.new_card_uuid()));
|
||||
}
|
||||
|
||||
if (card->getAttachedTo() && (startZone != targetZone)) {
|
||||
CardItem *parentCard = card->getAttachedTo();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue