Allow retrying canceled Richese gifts
This commit is contained in:
1 parent
e5c7e338e8
commit
813a19bb1d
12 files changed
+156
-33
No files matched your search
@@ -5343,14 +5343,6 @@ function validateRicheseGift(g: Game, owner: Player, cardId: string) {
|
||||
const card = owner.hand.find((c) => c.id === cardId)!;
|
||||
const reservation = transferCardBlock(g, owner, card);
|
||||
requireRule(!reservation, reservation ?? 'This card is already committed.');
|
||||
requireRule(
|
||||
!(
|
||||
g.richeseGiftBlocked?.turn === g.turn &&
|
||||
g.richeseGiftBlocked.phase === g.phase &&
|
||||
g.richeseGiftBlocked.cards.includes(cardId)
|
||||
),
|
||||
'Retrying this canceled card’s gift in the same phase awaits a ruling.',
|
||||
);
|
||||
const resulting = transferRicheseGift(
|
||||
owner,
|
||||
recipient,
|
||||
|
||||
Reference in new issue
Block a user