Support mixed Discovery decks with Leader Skills
Verify and publish checkpoint container / container (push) Canceled after 0s
Verify and publish checkpoint container / container (push) Canceled after 0s
This commit is contained in:
1 parent
7c1f4b4e09
commit
77eb2392eb
15 files changed
+420
-11
No files matched your search
@@ -94,9 +94,11 @@ void test('Discovery cannot redeal started components or silently remove another
|
||||
for (const game of overlays) assert.throws(() => initializeDiscoveryGameForAudit(game), RuleError);
|
||||
});
|
||||
|
||||
void test('Discovery Skills cannot silently drop unsupported native families or unrelated modules and previews', () => {
|
||||
const unsupported = lobby(['ixians', 'ecaz', 'guild'], ['ix', 'ecaz']);
|
||||
assert.throws(() => initializeLeaderSkillsGameForAudit(unsupported), RuleError);
|
||||
void test('Discovery Skills retain selected native families and reject invalid phase modules', () => {
|
||||
const selected = lobby(['ixians', 'ecaz', 'guild'], ['ix', 'ecaz']);
|
||||
const started = initializeLeaderSkillsGameForAudit(selected);
|
||||
assert.ok(started.leaderSkills && started.discoveries);
|
||||
assert.deepEqual(started.players.map(player => player.faction), ['ixians', 'ecaz', 'guild']);
|
||||
const basicStrongholds = lobby(['guild', 'emperor', 'harkonnen'], []);
|
||||
basicStrongholds.advanced = false; basicStrongholds.strongholdCards = createStrongholdCards();
|
||||
assert.throws(() => initializeLeaderSkillsGameForAudit(basicStrongholds), RuleError);
|
||||
|
||||
Reference in new issue
Block a user