Skip to content

Fix #2084: Clear target states when cards are created on the table#2336

Open
kellyelton wants to merge 1 commit intomasterfrom
oi/2084/target-arrow-create-fix
Open

Fix #2084: Clear target states when cards are created on the table#2336
kellyelton wants to merge 1 commit intomasterfrom
oi/2084/target-arrow-create-fix

Conversation

@kellyelton
Copy link
Copy Markdown
Member

Fixes #2084

Card target arrows could trigger events when cards are drawn from a pile to the table. This fix clears the target state on newly created table cards to prevent stale target arrows from firing events.

Changes:

  • Modified Table.create() in PythonAPI.py and all version files (3.1.0.0, 3.1.0.1, 3.1.0.2) to call card.target(False) after creating cards on the table
  • This ensures target arrows are cleared when cards are created on the table, preventing them from triggering events from pile-to-table moves

Files Modified:

  • octgnFX/Octgn.JodsEngine/Scripting/PythonAPI.py
  • octgnFX/Octgn.JodsEngine/Scripting/Versions/3.1.0.0.py
  • octgnFX/Octgn.JodsEngine/Scripting/Versions/3.1.0.1.py
  • octgnFX/Octgn.JodsEngine/Scripting/Versions/3.1.0.2.py

@kellyelton kellyelton added the octgn-issue-bot PRs created by the OCTGN issue bot label Apr 1, 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 target arrows can trigger events when drawn from a pile to the table. Should not be able to do this at all

1 participant