summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-09-09 20:58:43 +0200
committerTor Andersson <tor@ccxvii.net>2023-09-21 21:14:00 +0200
commit8cc0383f44a1e7bec0f5140c7f77f36ebf0040b0 (patch)
treeac6d1ea6f5326c9a054a0bbbc56d86f79523d1e1
parentd76855a759686208c1f9529cb0233ec519182b56 (diff)
downloadandean-abyss-8cc0383f44a1e7bec0f5140c7f77f36ebf0040b0.tar.gz
Issue #5: Fix Oil Spill event.
-rw-r--r--events.txt2
-rw-r--r--rules.js2
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 ],