Add additional params to observable calls; reveal counter and record logic on selections

This commit is contained in:
2025-06-16 22:41:34 -07:00
parent b76cb71f37
commit 06bff39f01
5 changed files with 17 additions and 18 deletions

View File

@@ -172,8 +172,7 @@ document.querySelectorAll('.end-turn').forEach(el =>
gameboard.clearFiringArcs(opponent);
if (opponentRecords.length > 0) {
Observable.notify('select', opponentRecords.at(0));
//firstOpponentRecord.scrollIntoView({ behavior: 'smooth' });
Observable.notify('select', opponentRecords.at(0), { revealCounter: true, revealRecord: true });
}
})
);