Enable Ecaz Duke revival with Advanced Harkonnen
Verify and publish checkpoint container / container (push) Successful in 11m23s
Verify and publish checkpoint container / container (push) Successful in 11m23s
This commit is contained in:
1 parent
ecd892b368
commit
88240e2cea
8 files changed
+287
-3
No files matched your search
@@ -3,6 +3,7 @@ import type { Leader } from './cards';
|
||||
import { DUKE_VIDAL_ID, returnedDukeCapture, type DukeState } from './duke-vidal';
|
||||
import { independentDiscoveryProfile, nexusCoreProfile, type FactionModuleProfile } from './faction-module-profile';
|
||||
import { mixedE3NexusProfile, pairedE3NexusProfile, standaloneE3NexusProfile } from './nexus-module-profile';
|
||||
import { plainAdvancedEcazDukeProfile } from './ecaz-duke-capture-policy';
|
||||
|
||||
export const DUKE_REVIVAL_NORMAL_COST = 5 as const;
|
||||
export type EcazDukeRevivalContext = Partial<FactionModuleProfile> & {
|
||||
@@ -85,7 +86,7 @@ export function resolveEcazDukeRevival(
|
||||
);
|
||||
requireDuke(
|
||||
!(g.advanced && g.players.some((p) => p.faction === 'harkonnen')) ||
|
||||
(!!g.expansions && (independentDiscoveryProfile(g as FactionModuleProfile) || nexusCoreProfile(g as FactionModuleProfile) || standaloneE3NexusProfile(g as FactionModuleProfile) ||
|
||||
(plainAdvancedEcazDukeProfile(g) || !!g.expansions && (independentDiscoveryProfile(g as FactionModuleProfile) || nexusCoreProfile(g as FactionModuleProfile) || standaloneE3NexusProfile(g as FactionModuleProfile) ||
|
||||
pairedE3NexusProfile(g as FactionModuleProfile) || mixedE3NexusProfile(g as FactionModuleProfile))),
|
||||
'table',
|
||||
);
|
||||
@@ -99,6 +100,13 @@ export function resolveEcazDukeRevival(
|
||||
!Array.isArray(duke.leader),
|
||||
);
|
||||
const leader = duke.leader;
|
||||
// In the newly admitted plain profile, a secretly executed Duke previously
|
||||
// controlled by someone else is still publicly alive to Ecaz. An attempted
|
||||
// revival cannot reveal that hidden result; an entitled original controller
|
||||
// retains their existing ability to act on their own known custody.
|
||||
if (plainAdvancedEcazDukeProfile(g) && leader.concealed &&
|
||||
leader.concealed.controller !== ownerId && leader.concealed.captor !== ownerId)
|
||||
requireDuke(false);
|
||||
requireDuke(
|
||||
leader.id === DUKE_VIDAL_ID &&
|
||||
leader.faction === 'ecaz' &&
|
||||
|
||||
Reference in new issue
Block a user