summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index adbf7d5..68c7181 100644
--- a/rules.js
+++ b/rules.js
@@ -6166,12 +6166,14 @@ states.minefield = {
prompt() {
view.prompt = `Buildup: Build a minefield.`
let mfs = friendly_minefields()
- let net = friendly_buildup_network()
if (mfs.length >= 2)
gen_action('dismantle')
- for (let x of all_hexes)
- if (net[x] && !is_battle_hex(x) && !set_has(mfs, x))
- gen_action_hex(x)
+ if (available_bps() >= 15) {
+ let net = friendly_buildup_network()
+ for (let x of all_hexes)
+ if (net[x] && !is_battle_hex(x) && !set_has(mfs, x))
+ gen_action_hex(x)
+ }
},
dismantle() {
push_undo()