summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index 5e10370..3804aa6 100644
--- a/rules.js
+++ b/rules.js
@@ -2181,15 +2181,15 @@ function check_safe_house() {
function check_player_safe_house(p) {
let x = player_cylinders(p);
for (let i = x; i < x + 10; ++i) {
- if (game.pieces[x] === Safe_House) {
+ if (game.pieces[i] === Safe_House) {
if (player_has_safe_house(p)) {
set_active(p);
logbr();
game.state = 'safe_house';
- game.selected = x;
+ game.selected = i;
return true;
} else {
- game.pieces[x] = 0;
+ game.pieces[i] = 0;
}
}
}
@@ -2208,7 +2208,7 @@ states.safe_house = {
},
card(c) {
push_undo();
- log(`${player_names[game.active]} spy to #{c}.`);
+ log(`${player_names[game.active]} spy to #${c}.`);
game.pieces[game.selected] = c;
game.selected = -1;
check_safe_house();