diff options
-rw-r--r-- | rules.js | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -359,7 +359,7 @@ exports.view = function(state, player) { strategy_deck: game.strategy_deck.length, strategy_removed: game.strategy_removed, discard: game.discard, - show_opp_hand: game.view_opp_hand, + show_opp_hand: game.view_opp_hand, /* Is this still needed?*/ democrat_hand: game.democrat_hand.length, communist_hand: game.communist_hand.length, @@ -405,6 +405,11 @@ exports.view = function(state, player) { view.opp_hand = [...game.dem_pwr_hand].sort((a, b) => a - b) view.power_hand = [...game.com_pwr_hand].sort((a, b) => a - b) } + if (game.view_opp_power_hand) { + if (player === COM) { + view.view_opp_power_hand = [...game.dem_pwr_hand].sort((a, b) => a - b) + } + } if (player === DEM) { view.samizdat = game.samizdat_card |