Protect reserved Richese lot during Harkonnen exchange
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
88240e2cea
commit
2660b10af0
7 files changed
+274
-3
No files matched your search
+2
-1
@@ -1717,7 +1717,8 @@ function policyActions(g: GameView): Action[] {
|
||||
}
|
||||
if (specialCard && me.faction === 'harkonnen' && g.phase === 3) {
|
||||
const victim = g.players
|
||||
.filter((p) => p.id !== me.id && (p.handCount ?? 0) > 0)
|
||||
.filter((p) => p.id !== me.id && (p.handCount ?? 0) > 0 &&
|
||||
!(g.richeseAuction?.harkonnenExchangeBlocked && g.richeseAuction.owner === p.id))
|
||||
.sort(
|
||||
(a, b) =>
|
||||
(b.ally === me.id ? -10 : 0) +
|
||||
|
||||
@@ -43238,6 +43238,11 @@ export function prepareSpecialKaramaIntent(
|
||||
g.pendingRicheseGift?.intent.owner !== target.id,
|
||||
'Resolve the reserved Richese gift before randomly exchanging that hand.',
|
||||
);
|
||||
requireRule(
|
||||
!(g.richeseAuction?.source === 'blackMarket' && !g.currentAuctionSale &&
|
||||
g.richeseAuction.owner === target.id),
|
||||
'Finish the Black Market lot before exchanging its seller’s hand.',
|
||||
);
|
||||
const count = integer(
|
||||
action.amount,
|
||||
1,
|
||||
@@ -50815,6 +50820,8 @@ export function viewGame(state: Game, id: string, now?: number) {
|
||||
richeseAuction: g.richeseAuction
|
||||
? {
|
||||
...projectRicheseAuction(g.richeseAuction, id),
|
||||
...(g.richeseAuction.source === 'blackMarket' && !g.currentAuctionSale
|
||||
? { harkonnenExchangeBlocked: true as const } : {}),
|
||||
card:
|
||||
g.richeseAuction.source === 'cache' ||
|
||||
g.richeseAuction.owner === id ||
|
||||
|
||||
Reference in new issue
Block a user