summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-10-26 22:04:21 +0200
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-10-26 22:04:21 +0200
commit85efb0f3f77664f3127b56ef0b25db6c987ef8fc (patch)
tree05b4eb65eef72c34a655d4268ffab9161b41f926
parent8d171d7e4d43732e60662b8ae9364501249edf76 (diff)
downloadalgeria-85efb0f3f77664f3127b56ef0b25db6c987ef8fc.tar.gz
handle zero activation cost
-rw-r--r--rules.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 38de71f..8b70b0b 100644
--- a/rules.js
+++ b/rules.js
@@ -2298,7 +2298,8 @@ states.gov_reinforcement = {
}
// cost can be fraction
let cost = activation_cost(list)
- lower_gov_psl(cost)
+ if (cost)
+ lower_gov_psl(cost)
},
remove() {
let list = game.selected