summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-04-28 15:45:45 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-03 18:48:16 +0200
commit8e8fdfc0af4453a26fa9318035b53b7d64763c6c (patch)
tree11dc0b48880f95adde098525ec674667a85b9343 /rules.js
parent54ed5b6dba4a16ebeeb01cea0963f49d2cff6c04 (diff)
downloadandean-abyss-8e8fdfc0af4453a26fa9318035b53b7d64763c6c.tar.gz
Fix free Sweep possibility checks.
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index f66c12e..69b39b9 100644
--- a/rules.js
+++ b/rules.js
@@ -7824,7 +7824,7 @@ states.vm_free_sweep_assault = {
prompt() {
event_prompt(`Free Sweep or Assault in ${space_name[game.vm.s]}.`)
view.where = game.vm.s
- if (has_any_underground_guerrilla(game.vm.s))
+ if (can_sweep_activate(game.vm.s))
view.actions.sweep = 1
else
view.actions.sweep = 0
@@ -7841,7 +7841,7 @@ states.vm_free_sweep_assault_farc = {
prompt() {
event_prompt(`Free Sweep or Assault FARC in ${space_name[game.vm.s]}.`)
view.where = game.vm.s
- if (has_underground_guerrilla(game.vm.s, FARC))
+ if (can_sweep_activate(game.vm.s, FARC))
view.actions.sweep = 1
else
view.actions.sweep = 0