summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-02-28 17:02:00 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 11:54:52 +0100
commitd5a49a301afb71289e4b487d7cab25f7294aa9a4 (patch)
treed7561b82ab1b88a825c90a9c613bf41bd41be372
parentb9d42a688970817314beaea7a319e79e9d567637 (diff)
downloadwilderness-war-d5a49a301afb71289e4b487d7cab25f7294aa9a4.tar.gz
Fix Ambush check.
-rw-r--r--rules.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index 6df44e9..df251df 100644
--- a/rules.js
+++ b/rules.js
@@ -3873,7 +3873,7 @@ function has_light_infantry_in_defense() {
}
function can_play_ambush_in_attack() {
- if (!game.battle.assault && !game.events.ambush !== game.battle.attacker) {
+ if (!game.battle.assault && game.events.ambush !== game.battle.attacker) {
let s = game.battle.where;
if (is_card_available_for_attacker(AMBUSH_1) || is_card_available_for_attacker(AMBUSH_2)) {
let n = count_auxiliary_units_in_attack();
@@ -3888,7 +3888,7 @@ function can_play_ambush_in_attack() {
}
function can_play_ambush_in_defense() {
- if (!game.battle.assault && !game.events.ambush !== game.battle.defender) {
+ if (!game.battle.assault && game.events.ambush !== game.battle.defender) {
let s = game.battle.where;
if (is_card_available_for_defender(AMBUSH_1) || is_card_available_for_defender(AMBUSH_2)) {
let n = count_auxiliary_units_in_defense();
@@ -3993,7 +3993,7 @@ states.attacker_events = {
else
dont_have.push('"Fieldworks"');
}
- view.prompt = "Attacker at ${game.battle.where}.";
+ view.prompt = `Attacker at ${space_name(game.battle.where)}.`;
view.where = game.battle.where;
if (have.length > 0)
view.prompt += " You may play " + have.join(" or ") + ".";