summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-17 17:10:56 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-08 16:36:48 +0100
commita18f1e41541b4e206c54af13733aef394458b8ca (patch)
tree528c7540220f0ba1e7880be2c7304ef21ebee1ed
parent886331ee11f3f5e64971a0575a0aeb9f85d7f8b7 (diff)
downloadtable-battles-a18f1e41541b4e206c54af13733aef394458b8ca.tar.gz
Pharsalus.
-rw-r--r--rules.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 4c0d6c9..3ab20fd 100644
--- a/rules.js
+++ b/rules.js
@@ -211,6 +211,10 @@ const S8_CLINTON = find_card(8, "Clinton")
const S8_GRANT = find_card(8, "Grant")
const S8_HESSIANS = find_card(8, "Hessians")
+const S36_PHARSALUS = find_scenario(36)
+const S36_SULLA = find_card(36, "Sulla")
+const S36_FOURTH_LINE = find_card(36, "The Fourth Line")
+
const S37_INKERMAN = find_scenario(37)
const S37_PAULOFFS_LEFT = find_card(37, "Pauloff's Left")
const S37_PAULOFFS_RIGHT = find_card(37, "Pauloff's Right")
@@ -2637,6 +2641,13 @@ function update_attack1(direct) {
}
}
+ if (game.scenario === S36_PHARSALUS) {
+ if (game.selected === S36_SULLA) {
+ if (is_card_in_play(S36_FOURTH_LINE))
+ game.hits += 1
+ }
+ }
+
if (game.scenario === S37_INKERMAN) {
// Until the first Fog Cube is lifted.
if (get_cubes(S37_THE_FOG) === 3) {