disallow face-down cards in other zones than the table
This commit is contained in:
parent
e326f9613a
commit
8cc5ee28a3
1 changed files with 2 additions and 0 deletions
|
@ -374,6 +374,8 @@ Response::ResponseCode Server_Player::moveCard(GameEventStorage &ges, Server_Car
|
|||
Server_Card *card = cardsToMove[cardIndex].first;
|
||||
const CardToMove *thisCardProperties = cardProperties.value(card);
|
||||
bool faceDown = thisCardProperties->has_face_down() ? thisCardProperties->face_down() : card->getFaceDown();
|
||||
if (!targetzone->hasCoords())
|
||||
faceDown = false;
|
||||
|
||||
int originalPosition = cardsToMove[cardIndex].second;
|
||||
int position = startzone->removeCard(card);
|
||||
|
|
Loading…
Reference in a new issue