Skip to content

Enhance AnyPlayerCardTargeting with null checks and focus handling#214

Merged
Alchyr merged 1 commit into
Alchyr:developfrom
BAKAOLC:fix/anyplayer-for-branch
May 7, 2026
Merged

Enhance AnyPlayerCardTargeting with null checks and focus handling#214
Alchyr merged 1 commit into
Alchyr:developfrom
BAKAOLC:fix/anyplayer-for-branch

Conversation

@BAKAOLC

@BAKAOLC BAKAOLC commented May 7, 2026

Copy link
Copy Markdown
Contributor

Fix #213 and complete some details

Copilot AI review requested due to automatic review settings May 7, 2026 13:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses the multiplayer AnyPlayer targeting/autoplay regressions described in issue #213 by removing direct CombatState access (which can trigger type-load failures on some game versions) and tightening up null/focus handling around card play flow.

Changes:

  • Avoid direct CardModel.CombatState usage by resolving combat state through BetaMainCompatibility.*.WrappedCombatState(...).
  • Add additional null-guards for multiplayer detection and controller targeting flow.
  • Improve post-play UI focus behavior by attempting to focus the active screen’s default control (with a safe fallback to grabbing focus on the hand UI).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Alchyr Alchyr merged commit 7b43cbd into Alchyr:develop May 7, 2026
3 of 4 checks passed
@BAKAOLC BAKAOLC deleted the fix/anyplayer-for-branch branch May 26, 2026 03:13
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.

3 participants