From 6f2230d57630d51aaa3a1929c686f5e2a48d79d1 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 3 Aug 2023 02:01:58 +0200 Subject: Increase support after killing figure by clicking support square. --- rules.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/rules.js b/rules.js index 39f1372..3c1e44b 100644 --- a/rules.js +++ b/rules.js @@ -4701,17 +4701,21 @@ states.free_increase_support_level = { prompt() { prompt("Combat: Increase support level or keep counter to reduce cost of card?") view.color = POPULACE - gen_action_region(game.where) + gen_action_support(game.where, get_support(game.where) + 1) view.actions.keep = 1 }, - region(where) { + support() { push_undo() log("Increased support level.") - increase_support(where) + increase_support(game.where) let bit = find_next_killed_in_combat() game.combat.killed &= ~bit goto_free_increase_support_level() }, + region(where) { + push_undo() + this.support() + }, keep() { push_undo() let bit = find_next_killed_in_combat() -- cgit v1.2.3