Compose selected E3 independent cards with Nexus rules
Selected Ecaz/Moritani decks with independent cards and Nexus now retain native Occupy, Advanced assassination, arrival ordering and shared Duke consumers, including original optional modules. Keep the trained E3/Harkonnen capture boundary and remaining individual Nexus effect limits explicit. Validation: frozen 17-file 168/168, types/lint/build, seven finite original-action and table-SSR programmes, plus four minimal legal Cunning/expiry policies. Fixture corrections preserve the printed alliance draw gate and real paid placement affordability. No stored-game or production change; comprehensive and deployed acceptance remain open.
This commit is contained in:
1 parent
8422cf1f2d
commit
8793e23d6b
21 files changed
+1374
-24
No files matched your search
@@ -108,7 +108,7 @@ void test('selected physical inventories require all three independent faces and
|
||||
assert.deepEqual(ctx, before);
|
||||
});
|
||||
|
||||
void test('public selected families authorize native responders without admitting unselected or E3 seats', () => {
|
||||
void test('public selected families authorize native responders without admitting unselected native seats', () => {
|
||||
const ctx = fixture();
|
||||
for (const expansions of [['choam'], ['ix', 'ix'], ['ix', 'ecaz'], []])
|
||||
assert.throws(() => createIxianBetrayalSource({ ...ctx, expansions }, authority(),
|
||||
@@ -125,6 +125,26 @@ void test('public selected families authorize native responders without admittin
|
||||
assert.equal(ixianBetrayalEligible(allied.cards, allied.players, 'holder', selection(allied)), false);
|
||||
});
|
||||
|
||||
for (const mixed of [false, true]) void test(`selected E3/${mixed ? 'Ix/CHOAM cache' : 'Ix'} native responders preserve original cancellation and physical cards`, () => {
|
||||
const original = fixture(mixed);
|
||||
const expansions = [...original.expansions!, 'ecaz'];
|
||||
const players: NexusPlayer[] = [...original.players.map(player => player.id === 'observer'
|
||||
? {...player, faction:'ecaz' as const} : player), {id:'moritani', faction:'moritani'}];
|
||||
const ctx: IxianBetrayalContext = {...original, expansions, players,
|
||||
cards:{...original.cards, hands:{...original.cards.hands, moritani:null}},
|
||||
physicalCards:[...treacheryDeck(expansions), ...ecazTreacheryCards(), ...(mixed ? richeseCards() : [])]};
|
||||
const before = structuredClone(ctx);
|
||||
const source = createIxianBetrayalSource(ctx, authority(), 'original-selected-e3-native-pool');
|
||||
assert.equal(source.eligible, 'holder');
|
||||
assert.deepEqual(ixianBetrayalResponders(ctx.cards, players, selection(ctx)), source.required);
|
||||
const closed = closeIxianBetrayalSource(source, 'use', 'holder', initialIxianBetrayalCursor());
|
||||
validateIxianBetrayalHistory([closed.receipt], closed.cursor, ctx.physicalCards, selection(ctx));
|
||||
assert.equal(ctx.physicalCards.length, mixed ? 60 : 50);
|
||||
assert.deepEqual(ctx, before, 'Neither the native E3 presence nor cancellation changes the selected catalogue.');
|
||||
assert.throws(() => createIxianBetrayalSource({...ctx, ecazTreachery:false}, authority(),
|
||||
source.parent), IxianBetrayalError, 'This new selected E3 lane requires its real independent-card selection.');
|
||||
});
|
||||
|
||||
void test('omitted selection preserves original Ix47 source and receipt grammar and rejects silent new card inventory', () => {
|
||||
const selected = fixture(false), ctx = { ...selected, physicalCards: treacheryDeck(['ix']) };
|
||||
delete ctx.expansions;
|
||||
|
||||
Reference in new issue
Block a user