mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-03 08:37:44 -08:00
disallow face-down cards in other zones than the table
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user