From db515098aeb9f44faa0990076ce54df6ab1b7f5b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 18 Oct 2023 00:34:20 +0200 Subject: Fix bug targeting Cartels for free assault event. --- rules.js | 10 ++++------ 1 file 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) -- cgit v1.2.3