diff options
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -1279,10 +1279,6 @@ states.end_of_year_discard = { discarded[faction_id].t.push(c); } game.discard[faction_id].push(c); - if (game.hands[faction_id].length <= get_hand_limit(faction_id) && - game.tableaus[faction_id].length <= game.year) { - log(`${player} discarded cards.`); - } }, undo(_, player) { const faction_id = player_faction_map[player]; @@ -1298,6 +1294,19 @@ states.end_of_year_discard = { } }, confirm(_, player) { + const faction_id = player_faction_map[player]; + const { d: discarded } = get_active_node_args(); + log_br(); + log(player + " discarded:"); + for (let c of discarded[faction_id].t) + log(">C" + c); + const n = discarded[faction_id].h.length; + if (n === 1) + log(">" + n + " card from hand"); + else if (n > 1) + log(">" + n + " cards from hand"); + else + log(">No cards from hand"); set_delete(game.active, player); if (game.active.length === 0) { resolve_active_and_proceed(); |