Add additional params to observable calls; reveal counter and record logic on selections
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user