Bind Truthtrance card plays to original Storm and spice windows

This commit is contained in:
Quintine committed 2026-10-27 02:25:46 +11:00
1 parent 09a81a9b65
commit e88f871385
20 files changed
+1519 -26

No files matched your search

+8
View File
@@ -82,6 +82,14 @@ function agrees(effect: Effect, change: (g: Game) => void, expected: boolean) {
void test('the four shared availability checks agree with legal server effects', () => {
for (const effect of effects) agrees(effect, () => {}, true);
});
void test('Storm cards close at actual movement even while the Storm phase continues', () => {
for (const effect of ['weather', 'atomics'] as const) {
agrees(effect, game => { game.stormCardWindowOpen = false; }, false);
agrees(effect, game => {
game.stormResolution = { from: game.storm, distance: 1, traversed: 0, pending: [] };
}, false);
}
});
void test('all four cards report pending table windows and reject without mutation', () => {
const pauses: ((g: Game) => void)[] = [
(g) => {