summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-17 20:28:30 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-17 20:28:30 +0200
commit5c6876ac876a235f8684431e5e3b47464172a303 (patch)
tree510eb811a3597b975705bbd37e68c683ecda4d7a
parent5d28b77c24cccf1d1c3ae980235612f492028bb1 (diff)
downloadplantagenet-5c6876ac876a235f8684431e5e3b47464172a303.tar.gz
reset king's name state after failed levy actions...
so they don't carry over to the york player's turn!
-rw-r--r--rules.js2
-rw-r--r--rules.ts3
2 files changed, 5 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index dede629..8ffefc2 100644
--- a/rules.js
+++ b/rules.js
@@ -2519,6 +2519,8 @@ states.muster = {
};
function resume_muster_lord() {
game.state = "muster_lord";
+ // Reset The King's Name after failed levy actions
+ delete_state_for_the_kings_name();
// Pay for Levy action
--game.actions;
// Muster over unless there are more actions possible
diff --git a/rules.ts b/rules.ts
index 3e50f57..3f246a9 100644
--- a/rules.ts
+++ b/rules.ts
@@ -3116,6 +3116,9 @@ states.muster = {
function resume_muster_lord() {
game.state = "muster_lord"
+ // Reset The King's Name after failed levy actions
+ delete_state_for_the_kings_name()
+
// Pay for Levy action
--game.actions