From b236dc6c372e8168d2d0ce4a508382c6b645cf59 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 20 Apr 2023 14:43:42 +0200 Subject: Fix Eradicate shift. --- rules.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'rules.js') 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) { -- cgit v1.2.3