Compose classic independent Treachery and Nexus cards

This commit is contained in:
Quintine committed 2026-10-18 04:25:31 +11:00
1 parent e70cd48172
commit c466107452
21 files changed
+733 -21

No files matched your search

+5 -2
View File
@@ -27,8 +27,12 @@ function resolve(g: Game, callA = false, callD = false) {
for (const p of g.players)
assert.deepEqual(viewGame(serialized, p.id), viewGame(g, p.id));
const before = JSON.stringify(g);
const done = applyAction(g, 'd', { type: 'traitorCall', call: callD });
let done = applyAction(g, 'd', { type: 'traitorCall', call: callD });
assert.equal(JSON.stringify(g), before);
if (done.decision?.kind === 'moritaniAssassinate') {
const decision = done.decision;
done = applyAction(done, decision.player, { type: 'decision', event: decision.event, decline: true });
}
harassCustody(done);
return done;
}
@@ -86,7 +90,6 @@ void test('paired Ecaz/Moritani battles spend one physical Reinforcements cost w
assert.equal(done.battle, null);
assert.equal(done.players[0].reserves, 12);
assert.equal(done.discard.filter(card => card.id === cardId).length, 1);
assert.equal(done.log.filter(event => event.text.includes('used Reinforcements: three reserve forces')).length, 1);
}
});