Preserve permanent Traitor markers through legal replacement recycling

This commit is contained in:
Quintine committed 2026-10-15 19:08:16 +11:00
1 parent 1cd7db7d0b
commit e265af3cb3
29 files changed
+1273 -68

No files matched your search

+6
View File
@@ -15,6 +15,7 @@ import {
nexusTraitorBattle,
} from './fixture-nexus-traitors';
import { nexusAllow, nexusReload } from './fixture-nexus-cards';
import { nextStrongholdFactionsNativeStep } from './fixture-stronghold-factions';
function fixture(
options: {
@@ -121,6 +122,11 @@ function actuallyReveal(): Game {
type: 'battlePreparationReady',
event: g.battle!.event,
});
while (g.battle!.preparation) {
const step = nextStrongholdFactionsNativeStep(g);
assert.ok(step);
g = applyAction(g, step.actor, step.action);
}
for (const [id, disc] of [
['q', leader.id],
['r', opposing.id],