summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index e6d59f9..2d54167 100644
--- a/rules.js
+++ b/rules.js
@@ -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