Allow Ecaz Ambassadors on the placed mobile stronghold
Share dynamic stronghold legality across placement, cancellation, bots and controls. Keep the HMS sheltered, preserve original fees and entry effects, and display its public Ambassador attached to the stronghold interior. Cover genuine Basic/Advanced placement, paid movement entry, card continuations, prevention and native relocation. No Terror or direct-shipment permission is added.
This commit is contained in:
1 parent
659e2a4a9a
commit
52832dc0fd
16 files changed
+1129
-55
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import { terrorLocationAllowed, type TerrorLocationContext } from './terror-location';
|
||||
import type { Game, ResponseWindow } from './engine';
|
||||
import { TERRITORIES } from './board';
|
||||
import { ambassadorPlacementDestination } from './ecaz-ambassador-placement';
|
||||
import {
|
||||
blockAmbassadorPlacement,
|
||||
type AmbassadorState,
|
||||
@@ -31,6 +31,8 @@ export type PlacementCancellationContext = Pick<
|
||||
| 'status'
|
||||
| 'phase'
|
||||
| 'turn'
|
||||
| 'storm'
|
||||
| 'mobileStronghold'
|
||||
| 'players'
|
||||
| 'pendingEcazPlacement'
|
||||
| 'ecazPlacementTurn'
|
||||
@@ -89,9 +91,8 @@ export function quotePlacementCancellation(
|
||||
Array.isArray(state.tokens) &&
|
||||
Array.isArray(state.cohort) &&
|
||||
state.tokens.filter((t) => t.id === pending.token).length === 1 &&
|
||||
TERRITORIES.some(
|
||||
(t) => t.id === pending.territory && t.type === 'stronghold',
|
||||
) &&
|
||||
ambassadorPlacementDestination(g, pending.territory).allowed &&
|
||||
ambassadorPlacementDestination(g, pending.territory).stronghold &&
|
||||
whole(pending.cost) &&
|
||||
pending.cost > 0,
|
||||
'No current physical Ambassador placement is awaiting cancellation.',
|
||||
|
||||
Reference in new issue
Block a user