mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-01 11:03:54 -07:00
allow attached cards to be moved to other zones (#5276)
This commit is contained in:
parent
03aff83135
commit
d196988cab
1 changed files with 5 additions and 1 deletions
|
|
@ -450,9 +450,13 @@ Response::ResponseCode Server_Player::moveCard(GameEventStorage &ges,
|
||||||
if (!card) {
|
if (!card) {
|
||||||
return Response::RespNameNotFound;
|
return Response::RespNameNotFound;
|
||||||
}
|
}
|
||||||
if (card->getParentCard()) {
|
|
||||||
|
// do not allow attached cards to move around on the table
|
||||||
|
if (card->getParentCard() && targetzone->getName() == "table") {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// do not allow cards with attachments to stack with other cards
|
||||||
if (!card->getAttachedCards().isEmpty() && !targetzone->isColumnEmpty(xCoord, yCoord)) {
|
if (!card->getAttachedCards().isEmpty() && !targetzone->isColumnEmpty(xCoord, yCoord)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue