From 392418f5fe031bbac23c8c80fdcc7528e5a84e59 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 1 Oct 2023 18:13:28 +0200 Subject: Fix bug when eliminating blown corps. --- rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 91bde78..f1b334e 100644 --- a/rules.js +++ b/rules.js @@ -361,7 +361,7 @@ function blow_unit(p, n) { } function eliminate_unit(p) { - if (piece_is_on_map(p)) { + if (piece_hex(p) !== ELIMINATED) { log("P" + p + " eliminated.") set_piece_hex(p, ELIMINATED) } -- cgit v1.2.3