summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/rules.js b/rules.js
index 4ceb60a..b9933bf 100644
--- a/rules.js
+++ b/rules.js
@@ -4762,22 +4762,22 @@ function goto_eradicate_shift() {
}
function can_eradicate_shift() {
- if (can_shift_opposition(game.sa.where))
+ if (is_dept(game.sa.where) && can_shift_opposition(game.sa.where))
return true
for (let s of data.spaces[game.sa.where].adjacent)
- if (can_shift_opposition(s))
+ if (is_dept(s) && can_shift_opposition(s))
return true
return false
}
states.eradicate_shift = {
prompt() {
- view.prompt = `Eradicate: Shift ${space_name[game.sa.where]} or an adjacent space toward active Opposition.`
+ view.prompt = `Eradicate: Shift ${space_name[game.sa.where]} or an adjacent Department toward active Opposition.`
view.where = game.sa.where
- if (can_shift_opposition(game.sa.where))
+ if (is_dept(game.sa.where) && can_shift_opposition(game.sa.where))
gen_action_space(game.sa.where)
for (let s of data.spaces[game.sa.where].adjacent)
- if (can_shift_opposition(s))
+ if (is_dept(s) && can_shift_opposition(s))
gen_action_space(s)
},
space(s) {