From 8cc0383f44a1e7bec0f5140c7f77f36ebf0040b0 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 9 Sep 2023 20:58:43 +0200 Subject: Issue #5: Fix Oil Spill event. --- events.txt | 2 +- rules.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/events.txt b/events.txt index be3315b..c9e60a9 100644 --- a/events.txt +++ b/events.txt @@ -77,7 +77,7 @@ SHADED 5 EVENT 6 prompt "Select Opposition or Neutral Departments adjacent to Sabotage." - space 2 is_pop(s) && !is_support(s) && is_adjacent_to_sabotage(s) + space 2 is_dept(s) && is_pop(s) && !is_support(s) && is_adjacent_to_sabotage(s) set_passive_support endspace diff --git a/rules.js b/rules.js index 4846196..d26cff5 100644 --- a/rules.js +++ b/rules.js @@ -8537,7 +8537,7 @@ CODE[5 * 2 + 1] = [ // EVENT 6 CODE[6 * 2 + 0] = [ [ vm_prompt, "Select Opposition or Neutral Departments adjacent to Sabotage." ], - [ vm_space, true, 2, 2, (s)=>is_pop(s) && !is_support(s) && is_adjacent_to_sabotage(s) ], + [ vm_space, true, 2, 2, (s)=>is_dept(s) && is_pop(s) && !is_support(s) && is_adjacent_to_sabotage(s) ], [ vm_set_passive_support ], [ vm_endspace ], [ vm_return ], -- cgit v1.2.3