From 25a4204caf908fcf3c9cb1bc329419097eb48415 Mon Sep 17 00:00:00 2001 From: RickyRister Date: Fri, 12 Sep 2025 02:38:25 -0700 Subject: [PATCH] Fix hand visible --- cockatrice/src/game/player/player.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cockatrice/src/game/player/player.cpp b/cockatrice/src/game/player/player.cpp index e9a1b52c8..b95f524ac 100644 --- a/cockatrice/src/game/player/player.cpp +++ b/cockatrice/src/game/player/player.cpp @@ -56,7 +56,9 @@ void Player::initializeZones() addZone(new PileZoneLogic(this, "sb", false, false, false, this)); addZone(new TableZoneLogic(this, "table", true, false, true, this)); addZone(new StackZoneLogic(this, "stack", true, false, true, this)); - addZone(new HandZoneLogic(this, "hand", false, false, true, this)); + bool visibleHand = playerInfo->getLocalOrJudge() || + (game->getPlayerManager()->isSpectator() && game->getGameMetaInfo()->spectatorsOmniscient()); + addZone(new HandZoneLogic(this, "hand", false, false, visibleHand, this)); } Player::~Player()