summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-18 00:34:20 +0200
committerTor Andersson <tor@ccxvii.net>2023-10-18 00:37:54 +0200
commitdb515098aeb9f44faa0990076ce54df6ab1b7f5b (patch)
tree7b40f01eee7fcd98b5d78a340e1c618a68ca0767
parent94465fe0c4b0d83b3bdb1bee6998b55fb168ebdb (diff)
downloadandean-abyss-db515098aeb9f44faa0990076ce54df6ab1b7f5b.tar.gz
Fix bug targeting Cartels for free assault event.
-rw-r--r--rules.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/rules.js b/rules.js
index 6506e85..a84e297 100644
--- a/rules.js
+++ b/rules.js
@@ -3678,8 +3678,8 @@ states.sweep_activate = {
gen_govt_special_activity()
- if (game.op.faction === FARC) {
- gen_underground_guerrillas(game.op.where, FARC)
+ if (game.op.faction) {
+ gen_underground_guerrillas(game.op.where, game.op.faction)
} else {
if (!has_momentum(MOM_SENADO_FARC))
gen_underground_guerrillas(game.op.where, FARC)
@@ -3905,10 +3905,8 @@ states.assault_space = {
view.prompt = `Assault: Remove ${game.op.count} enemy pieces in ${space_name[game.op.where]}.`
view.where = game.op.where
- if (game.op.faction === FARC) {
- gen_exposed_piece(game.op.where, FARC)
- } else if (game.op.faction === AUC) {
- gen_exposed_piece(game.op.where, AUC)
+ if (game.op.faction) {
+ gen_exposed_piece(game.op.where, game.op.faction)
} else {
if (!has_momentum(MOM_SENADO_FARC))
gen_exposed_piece(game.op.where, FARC)