diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-10-18 00:34:20 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-10-18 00:37:54 +0200 |
commit | db515098aeb9f44faa0990076ce54df6ab1b7f5b (patch) | |
tree | 7b40f01eee7fcd98b5d78a340e1c618a68ca0767 /rules.js | |
parent | 94465fe0c4b0d83b3bdb1bee6998b55fb168ebdb (diff) | |
download | andean-abyss-db515098aeb9f44faa0990076ce54df6ab1b7f5b.tar.gz |
Fix bug targeting Cartels for free assault event.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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) |