summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js17
1 files changed, 3 insertions, 14 deletions
diff --git a/rules.js b/rules.js
index dff42c5..3e4a867 100644
--- a/rules.js
+++ b/rules.js
@@ -387,19 +387,8 @@ exports.view = function(state, player) {
view.drawn = game.vm.draw
if (player === game.active) {
- if (game.selected_space) {
- view.valid_spaces = [game.selected_space]
- } else {
- view.valid_spaces = game.valid_spaces
- }
- } else {
- view.valid_spaces = []
- }
-
- if (player === game.active) {
- view.valid_cards = game.valid_cards
- } else {
- view.valid_cards = []
+ if (game.selected_space >= 0)
+ view.selected_space = game.selected_space
}
if (player === DEM) {
@@ -422,7 +411,7 @@ exports.view = function(state, player) {
if (game.state === "game_over") {
view.prompt = game.victory
- } else if (player === "Observer" || (game.active !== player && game.active !== "Both")) {
+ } else if (game.active !== player) {
if (states[game.state]) {
let inactive = states[game.state].inactive
if (typeof inactive === "function")