From 2787cee71f6cdc2b97b6f1af4080a3dae0311cb8 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 6 May 2024 03:07:19 +0200 Subject: fix censorship recycling --- rules.js | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 718ad24..72165e7 100644 --- a/rules.js +++ b/rules.js @@ -337,7 +337,7 @@ function discard_card(c) { function recycle_card(c) { array_remove_item(player_hand(), c) - game.strategy_deck.unshift(c) + game.discard.unshift(c) } function remove_card(c) { @@ -1784,17 +1784,6 @@ states.operations_remove_spend = { }, } -states.operations_remove_draw = { - inactive: "use Operations Points", - prompt() { - view.prompt = "Operations: Draw card for removal in Military." - view.actions.draw = 1 - }, - draw() { - attempt_remove_piece(0) - }, -} - function attempt_remove_piece(extra) { clear_undo() let p = game.who @@ -1812,6 +1801,8 @@ function attempt_remove_piece(extra) { logi("Failure") } game.who = -1 + if (game.censorship) + game.discard.unshift(c) resume_operations_remove() } -- cgit v1.2.3