From ff7ce39841b8c70b9623c3728246677429f196ad Mon Sep 17 00:00:00 2001 From: RickyRister <42636155+RickyRister@users.noreply.github.com> Date: Fri, 12 Sep 2025 06:46:38 -0700 Subject: [PATCH] Fix hand visible (#6122) --- 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 bf1394039..17cc27a26 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()