Announce Advanced leaderless battle plans before reveal

This commit is contained in:
Quintine committed 2026-10-01 22:33:01 +10:00
1 parent 3b79267c29
commit 44d90bb9ae
7 files changed
+108 -1

No files matched your search

+5
View File
@@ -29521,6 +29521,8 @@ function applyActionInner(
'Wait for the plan requested by special prescience.',
);
b.plans[id] = validatePlan(g, p, action);
if (g.advanced && b.plans[id].leader === null)
log(g, `${p.name} announced a Battle Plan without a leader or Cheap Hero; no battle cards can be played.`);
if (b.fullPlan?.target === id) {
recordFullPlanInspection(g, b.fullPlan.owner);
return g;
@@ -30880,6 +30882,9 @@ export function viewGame(state: Game, id: string) {
})
: [],
submitted: Object.keys(b.plans),
leaderless: g.advanced
? Object.keys(b.plans).filter(playerId => b.plans[playerId].leader === null)
: [],
plans: b.revealed
? b.plans
: b.plans[id]
+1 -1
View File
@@ -2299,7 +2299,7 @@ export const RULE_TOPICS: RuleTopic[] = [
summary: 'Build a legal combination and decide what to keep after winning.',
steps: [
'Choose one weapon, one defense, both, or neither. A worthless card can occupy a weapon or defense slot.',
'Choose an available leader or Cheap Hero when required. Without either, battle cards cannot be played.',
'Choose an available leader or Cheap Hero when required. Without either, battle cards cannot be played. In Advanced, sealing a legal leaderless plan announces that fact to the whole table before reveal; its dial, spice and other choices remain sealed. Refresh retains the same announcement without submitting another plan.',
'A loser normally discards all played cards. If allied with Moritani and the battle has a winner, the defeated ally may retain one played card that a winner could keep. A winner may discard selected played cards; Cheap Heroes are discarded after use.',
],
related: ['battle', 'card-karama', 'moritani-ally-retention'],