mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 00:42:14 -07:00
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;
|
Server_Card *card = cardsToMove[cardIndex].first;
|
||||||
const CardToMove *thisCardProperties = cardProperties.value(card);
|
const CardToMove *thisCardProperties = cardProperties.value(card);
|
||||||
bool faceDown = thisCardProperties->has_face_down() ? thisCardProperties->face_down() : card->getFaceDown();
|
bool faceDown = thisCardProperties->has_face_down() ? thisCardProperties->face_down() : card->getFaceDown();
|
||||||
|
if (!targetzone->hasCoords())
|
||||||
|
faceDown = false;
|
||||||
|
|
||||||
int originalPosition = cardsToMove[cardIndex].second;
|
int originalPosition = cardsToMove[cardIndex].second;
|
||||||
int position = startzone->removeCard(card);
|
int position = startzone->removeCard(card);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue