From d196988cab4603b883406776c4caf4255f9687b7 Mon Sep 17 00:00:00 2001 From: RickyRister <42636155+RickyRister@users.noreply.github.com> Date: Thu, 19 Dec 2024 15:53:48 -0800 Subject: [PATCH] allow attached cards to be moved to other zones (#5276) --- 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 cee92c809..8e769ccdc 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; }