summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-04-13 23:31:44 +0200
committerTor Andersson <tor@ccxvii.net>2024-04-13 23:31:48 +0200
commitc62755e12f7b3634d1c281b6b030aa699ce9e428 (patch)
tree1c330171e2efb2b2c43dbebb68941b8976181350
parentfc2d86ac2f7364161777114109cd5971175d1190 (diff)
downloadplantagenet-c62755e12f7b3634d1c281b6b030aa699ce9e428.tar.gz
Enable playing Flank Attack events.
-rw-r--r--rules.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index 2b6a767..c15711d 100644
--- a/rules.js
+++ b/rules.js
@@ -6414,9 +6414,7 @@ states.intercept = {
view.prompt = `Choose lord to intercept moving lords?`
let to = get_lord_locale(game.command)
- // TODO : FLANK ATTACK through the held intercept
- // or held event but with more conditions (for example state = "intercept")
- // prompt_held_event_intercept()
+ prompt_held_event_intercept()
if (game.who === NOBODY) {
for (let next of data.locales[to].not_paths)
@@ -6446,6 +6444,10 @@ states.intercept = {
set_toggle(game.intercept_group, lord)
}
},
+ card(c) {
+ push_undo()
+ play_held_event(c)
+ },
pass() {
set_active_enemy()
end_intercept()