Skip to content

Allow adding basic lands while sideboarding in limited games - #12182

Open
DandamanAUS wants to merge 1 commit into
Card-Forge:masterfrom
DandamanAUS:fix-9087-sideboard-basic-lands
Open

DandamanAUS wants to merge 1 commit into
Card-Forge:masterfrom
DandamanAUS:fix-9087-sideboard-basic-lands

Conversation

@DandamanAUS

Copy link
Copy Markdown

Fixes #9087.

In the mobile/Adventure GUI, the between-games sideboard dialog only allowed moving cards between the main deck and sideboard, so draft/sealed players (Adventure inn events, Quest drafts) had no way to add basic lands, which limited rules treat as freely available.

Changes

  • When the match uses DeckFormat.Limited, FSideboardDialog shows a "..." button in the top-right corner of the match menu bar, with an "Add Basic Lands" item (land icon), the same place and look as in the deck editor. It opens the existing AddBasicLandsDialog (land set from DeckProxy.getDefaultLandSet) and adds the chosen lands to the main deck tab.
  • FMenuBar.setTrailingWidth reserves room at the right of the bar so the Game/Players/Log/Stack tabs shrink to fit the button while the dialog is open; the space is released when it closes.
  • If the menu bar is rotated to the side (hotseat layout), the dialog shows FDeckEditor.DeckHeader with the same "..." menu instead.
  • MatchController.sideboard passes whether the current game type is Limited.

Constructed and Quest (non-draft) sideboarding is unchanged. Match already accepts the returned main deck as is, so no game-logic changes were needed.

Testing
Built forge-gui-mobile-dev and played an Adventure inn draft on Windows: after game 1, the "..." menu appears top-right on the sideboard screen, and basics added there are in the deck for the next game.

This change was written with Claude Code (co-author on the commit).

🤖 Generated with Claude Code

…rge#9087)

The mobile sideboard dialog only let cards move between the main deck
and sideboard, so draft/sealed players (Adventure inn events, Quest
drafts, etc.) couldn't add basic lands between games.

When the match uses the Limited deck format, show a "..." button in the
top-right corner of the match menu bar (shrinking the tabs to make room)
with an "Add Basic Lands" item, matching where the option sits in the
deck editor. It opens the existing AddBasicLandsDialog and adds the
lands to the main deck. If the menu bar is rotated to the side, the
dialog shows the deck editor header with the same "..." menu instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adventure sideboarding during draft doesn't have option for basic lands

2 participants