From c5101df46c4ce322ba13ebf73fc0d04811a6010b Mon Sep 17 00:00:00 2001 From: RickyRister Date: Thu, 19 Dec 2024 11:54:28 -0800 Subject: [PATCH] allow attached cards to be moved to other zones --- common/server_player.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/server_player.cpp b/common/server_player.cpp index 218ab2fdd..8bcb394df 100644 --- a/common/server_player.cpp +++ b/common/server_player.cpp @@ -450,9 +450,13 @@ Response::ResponseCode Server_Player::moveCard(GameEventStorage &ges, if (!card) { return Response::RespNameNotFound; } - if (card->getParentCard()) { + + // do not allow attached cards to move around on the table + if (card->getParentCard() && targetzone->getName() == "table") { continue; } + + // do not allow cards with attachments to stack with other cards if (!card->getAttachedCards().isEmpty() && !targetzone->isColumnEmpty(xCoord, yCoord)) { continue; }