Connect Moritani Nexus losing-card retention

This commit is contained in:
Quintine committed 2026-09-28 11:13:39 +10:00
1 parent cb98ead411
commit 886a8f4478
16 files changed
+551 -51

No files matched your search

+4 -1
View File
@@ -1676,7 +1676,10 @@ function policyActions(g: GameView): Action[] {
const candidates = (me.hand ?? [])
.filter((card) => d.cards.includes(card.id))
.sort((a, b) => technologyCardValue(g, b) - technologyCardValue(g, a));
return [{ type: 'decision', keep: candidates[0]?.id ?? null }];
return [d.source === 'nexus'
? { type: 'decision', event: d.event,
keep: g.nexusMoritaniRetention?.canKeep ? candidates[0]?.id ?? null : null }
: { type: 'decision', keep: candidates[0]?.id ?? null }];
}
if (d.kind === 'moritaniTerror') {
const entry = g.terrorEntry;