diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-04-20 14:43:42 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-05-03 18:48:16 +0200 |
commit | b236dc6c372e8168d2d0ce4a508382c6b645cf59 (patch) | |
tree | d129cef705dc4447aedd410a6750062312ea50e4 /rules.js | |
parent | ea0e725f6454beae7f7cd993fce538b80b64459e (diff) | |
download | andean-abyss-b236dc6c372e8168d2d0ce4a508382c6b645cf59.tar.gz |
Fix Eradicate shift.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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) { |