summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-04-20 14:43:42 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-03 18:48:16 +0200
commitb236dc6c372e8168d2d0ce4a508382c6b645cf59 (patch)
treed129cef705dc4447aedd410a6750062312ea50e4 /rules.js
parentea0e725f6454beae7f7cd993fce538b80b64459e (diff)
downloadandean-abyss-b236dc6c372e8168d2d0ce4a508382c6b645cf59.tar.gz
Fix Eradicate shift.
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) {