summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-20 10:44:07 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-20 10:44:07 +0100
commit4a2415e6f360fcb832dc10348e5ad84c70d88103 (patch)
tree7c769ecd93a974d62c07a135474bdbbff6a3a689 /rules.js
parente082162d62141b76e00422e70f39e6707223b41b (diff)
download1989-dawn-of-freedom-4a2415e6f360fcb832dc10348e5ad84c70d88103.tar.gz
Updates to Austria Hungary Border Reopened when ops go negative
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 58ce72d..7128a3d 100644
--- a/rules.js
+++ b/rules.js
@@ -1975,7 +1975,6 @@ function add_infl(space) {
//Check if Austria Hungary Border Reopened was used to place last SP in a controlled space in East Germany. If so, game.available_op will be negative
if (game.available_ops < 0) {
log(`Used +1 from C58`)
- game.available_ops = 0
}
} else {
game.available_ops--
@@ -1992,7 +1991,7 @@ function add_infl(space) {
check_control_change(clicked_space)
// Check Austria Hungary Border Reopened is true and condition has been met
- if (game.available_ops === 0 && game.active === DEM && game.persistent_events['austria_hungary_border_reopened'] && game.austria_hungary_border_reopened_tracker) {
+ if (game.available_ops <= 0 && game.active === DEM && game.persistent_events['austria_hungary_border_reopened'] && game.austria_hungary_border_reopened_tracker) {
game.available_ops ++
log('+1 influence from C58')
game.austria_hungary_border_reopened_tracker = false