From 3a564d1ecff1bb68d7646fd0fd427ca775c7924d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 17 Dec 2023 17:11:20 +0100 Subject: Shortcut confirm for Screen/Absorb/Counterattack. --- rules.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/rules.js b/rules.js index 3ab20fd..b8dc0e1 100644 --- a/rules.js +++ b/rules.js @@ -3268,6 +3268,7 @@ states.screen = { prompt() { view.prompt = "Screen attack from " + card_name(game.selected) + "." view.actions.screen = 1 + gen_action_card(game.selected) }, screen() { log("Screen\nC" + game.target) @@ -3279,6 +3280,9 @@ states.screen = { end_reaction() }, + card(c) { + this.screen() + }, } // === ABSORB === @@ -3344,6 +3348,7 @@ states.absorb = { prompt() { view.prompt = "Absorb attack from " + card_name(game.selected) + "." view.actions.absorb = 1 + gen_action_card(game.selected) }, absorb() { log("Absorb\nC" + game.target) @@ -3351,6 +3356,9 @@ states.absorb = { pay_for_action(game.target) end_reaction() }, + card(c) { + this.absorb() + }, } // === COUNTERATTACK === @@ -3408,6 +3416,7 @@ states.counterattack = { prompt() { view.prompt = "Counterattack " + card_name(game.selected) + "." view.actions.counterattack = 1 + gen_action_card(game.selected) }, counterattack() { log("Counterattack\nC" + game.target) @@ -3415,6 +3424,9 @@ states.counterattack = { pay_for_action(game.target) end_reaction() }, + card(c) { + this.counterattack() + }, } // === ATTACK EFFECTS === -- cgit v1.2.3