Skip to content

Battlegrounds opponent board not showing on hover - #4742

Open
JasonLandbridge wants to merge 1 commit into
HearthSim:masterfrom
JasonLandbridge:fix-hover-enemy-bug
Open

Battlegrounds opponent board not showing on hover #4742
JasonLandbridge wants to merge 1 commit into
HearthSim:masterfrom
JasonLandbridge:fix-hover-enemy-bug

Conversation

@JasonLandbridge

@JasonLandbridge JasonLandbridge commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Closes #4700, #4689

I can confirm this works in both single and dual Hearthstone battlegrounds matches

@JasonLandbridge

Copy link
Copy Markdown
Contributor Author

@beheh Hi, could you please merge this?

…ents

Board snapshots were stored by PLAYER_ID but retrieved via a two-step
lookup (entityId → live entity → PLAYER_ID → snapshot). After opponents
died, their hero entities were cleaned from _game.Entities, so
GetSnapshot() returned null even though the snapshot was successfully
captured during combat.

Added LastKnownBoardStateByHeroEntityId dictionary as a direct
entityId → snapshot index. GetSnapshot() now falls back to this
direct lookup when the entity is no longer in the game state.

Closes HearthSim#4700, HearthSim#4689
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

HDT for Battleground - Not showing opponent's comp when hovering

1 participant