Fix mixed-deck Nexus Betrayal continuations
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
6204efb7e4
commit
7680e1ee69
15 files changed
+487
-46
No files matched your search
@@ -91,10 +91,9 @@ function selectedExpansions(selection: IxianBetrayalSelection): readonly string[
|
||||
const expansions = selection.expansions ?? ['ix'];
|
||||
requireBetrayal(Array.isArray(expansions) && expansions.length >= 1 && expansions.length <= 3 &&
|
||||
expansions.includes('ix') && expansions.every((expansion, index) =>
|
||||
(expansion === 'ix' || expansion === 'choam' ||
|
||||
(expansion === 'ecaz' && selection.ecazTreachery === true)) && expansions.indexOf(expansion) === index) &&
|
||||
(expansion === 'ix' || expansion === 'choam' || expansion === 'ecaz') && expansions.indexOf(expansion) === index) &&
|
||||
(selection.ecazTreachery === undefined || typeof selection.ecazTreachery === 'boolean'),
|
||||
'Ixian Betrayal requires an original selected Ixian deck, optionally CHOAM or independent Ecaz cards and factions.');
|
||||
'Ixian Betrayal requires the selected Ixian deck and distinct registered expansion decks.');
|
||||
return expansions;
|
||||
}
|
||||
function canonicalCard(value: unknown, canonical: ReadonlyMap<string, Card>): value is Card {
|
||||
|
||||
Reference in new issue
Block a user