Fix Mosswort Bridge hideaway card visible to opponent (#4828)#4842
Fix Mosswort Bridge hideaway card visible to opponent (#4828)#4842kiannidev wants to merge 3 commits into
Conversation
ExileGhostCard on hideaway permanents now uses the same look-permission gate as ZoneViewer so opponents see a face-down placeholder instead of the hidden card identity. Fixes phase-rs#4828
There was a problem hiding this comment.
Code Review
This pull request addresses issue #4828 by ensuring that face-down exiled cards (such as those exiled via Hideaway) are properly hidden from the opponent on the source permanent's exile ghost in the UI. It introduces a hiddenFromViewer check in ExileGhostCard using isFaceDownExileCardVisibleToViewer and adds a corresponding unit test to verify this behavior. I have no feedback to provide as there are no review comments to address.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Use the discriminated NoCost shape without Cost-only fields so type-check passes in the frontend workflow. Co-authored-by: Cursor <cursoragent@cursor.com>
# Conflicts: # client/src/components/board/PermanentCard.tsx
Summary
Test plan
Fixes #4828