summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index ecfbf6f..01443d6 100644
--- a/rules.js
+++ b/rules.js
@@ -342,7 +342,6 @@ function game_view(state, current) {
first_player: game.first_player,
fronts: game.fronts,
glory: game.glory,
- hand: faction === null ? [] : game.hands[faction],
hero_points: game.hero_points,
initiative: game.initiative,
medallions: game.medallions,
@@ -358,6 +357,11 @@ function game_view(state, current) {
year: game.year,
fascist: game.fascist,
};
+ if (faction !== null) {
+ view.hand = game.hands[faction];
+ view.discard = game.discard[faction];
+ view.trash = game.trash[faction];
+ }
if (!game.hidden_bag)
view.bag_of_glory = game.bag_of_glory;
if (game.state === 'game_over') {
@@ -1777,7 +1781,6 @@ states.return_card = {
const faction = get_active_faction();
gen_spend_hero_points();
view.prompt = 'Return a card to your hand.';
- view.trash = game.trash[faction];
let possible = false;
for (let c of game.trash[faction]) {
if (c !== game.played_card) {