allow attached cards to be moved to other zones (#5276)

This commit is contained in:
RickyRister
2024-12-19 15:53:48 -08:00
committed by GitHub
parent 03aff83135
commit d196988cab

View File

@@ -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;
}