summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-06-03 17:43:07 +0200
committerTor Andersson <tor@ccxvii.net>2024-06-03 17:43:07 +0200
commit61a7add46e3692d62b98cf9e1ba94eeb62df9f64 (patch)
tree226345eca7bd37def440691f5b4c8057a92aa7cc
parentbcf6a9df595a04f96fce568f612faf9f9d1a7e89 (diff)
downloadfriedrich-61a7add46e3692d62b98cf9e1ba94eeb62df9f64.tar.gz
allow passing on Daun free move event
-rw-r--r--rules.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index e0dc419..2406179 100644
--- a/rules.js
+++ b/rules.js
@@ -3820,6 +3820,8 @@ states.austria_may_move_laudon_by_one_city_immediately = {
view.actions.take = 1
if (s_give > 0 && u_take > 0)
view.actions.give = 1
+
+ view.actions.pass = 1
},
take() {
push_undo()
@@ -3839,6 +3841,10 @@ states.austria_may_move_laudon_by_one_city_immediately = {
move_general_immediately(s)
game.state = "laudon_done"
},
+ pass() {
+ clear_undo()
+ goto_start_turn()
+ }
}
states.laudon_take = states.move_take