From 7012e86d0baabf06967d4b2fd3ffb6ebd78ca827 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 14 Aug 2024 11:47:11 +0200 Subject: fix flip generals too far away from supply train events. ...when the supply train is eliminated --- rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules.js b/rules.js index 417951c..47b62d3 100644 --- a/rules.js +++ b/rules.js @@ -3701,7 +3701,7 @@ function goto_flip_5_or_6_from_nearest_train(power, list) { game.selected = [] for (let p of list) if (game.pos[p] < ELIMINATED && !is_out_of_supply(p)) - if (!set_has(game.supply, game.pos[p])) + if (!game.supply || !set_has(game.supply, game.pos[p])) game.selected.push(p) delete game.supply -- cgit v1.2.3