diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-05-13 14:11:27 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 12:31:29 +0100 |
commit | d0633886d47f8a4d1db205c405ded5c377826cbd (patch) | |
tree | 326b1820586b359f6175a612717eb1d22cfae447 | |
parent | dbbfc7c8a677ceba5afe928ae22658c4e682a56b (diff) | |
download | pax-pamir-d0633886d47f8a4d1db205c405ded5c377826cbd.tar.gz |
Automatically select unused block for Infrastructure event.
-rw-r--r-- | rules.js | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1560,10 +1560,12 @@ states.infrastructure = { } function end_build_action() { - if (active_has_infrastructure()) + if (active_has_infrastructure()) { game.state = 'infrastructure'; - else + game.selected = select_available_block(); + } else { end_action(); + } } // CARD-BASED ACTION: MOVE |