Skip to content

Fix #1829: Allow card.moveTo(table) without controller check, fix error message#2314

Open
kellyelton wants to merge 1 commit intomasterfrom
oi/1829/fix-card-moveto-table-controller
Open

Fix #1829: Allow card.moveTo(table) without controller check, fix error message#2314
kellyelton wants to merge 1 commit intomasterfrom
oi/1829/fix-card-moveto-table-controller

Conversation

@kellyelton
Copy link
Copy Markdown
Member

Fixes #1829

Two fixes in CardMoveTo scripting API:

  1. Allow moving cards to the table: The table is a shared group with no controller, so the controller check was incorrectly blocking moves to it. Added !(group is Table) exception.

  2. Fix error message: The warning message said "they don't control {1}" when it should have said "{2}" (referencing the group name, not the card name).

…or message

- Skip group controller check when target is the table (shared group)
- Fix error message that incorrectly referenced card name instead of group name
@kellyelton kellyelton added the octgn-issue-bot PRs created by the OCTGN issue bot label Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

octgn-issue-bot PRs created by the OCTGN issue bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

card.moveTo(table) API gives non-controller errors

1 participant