summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-08-03 01:58:58 +0200
committerTor Andersson <tor@ccxvii.net>2023-08-03 01:58:58 +0200
commitdb80695f16493d844bfa874ddb10e28cb77d83e3 (patch)
tree675672fb785553ffb3826236011884e78af6e978
parent63a94ceb87d49bb45d3fe5a0a55584c5b992111c (diff)
downloadtime-of-crisis-db80695f16493d844bfa874ddb10e28cb77d83e3.tar.gz
Don't "Add Legion to Army" when all legions are in play.
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index a332d2e..3a03bf3 100644
--- a/rules.js
+++ b/rules.js
@@ -2008,7 +2008,7 @@ states.take_actions = {
// Add Legion to Army
if (is_own_province(where)) {
let cost = count_legions_in_army(game.selected_general) + 1
- if (game.mip >= cost)
+ if (game.mip >= cost && find_unused_legion() >= 0)
view.actions.add_legion_to_army = 1
}