summaryrefslogtreecommitdiff
path: root/rules.ts
diff options
context:
space:
mode:
authorFrans Bongers <fransbongers@macbookpro.home>2025-03-20 21:29:12 +0100
committerFrans Bongers <fransbongers@macbookpro.home>2025-03-20 21:29:12 +0100
commita68c15ccf06f35f7c650f02417898270566f1328 (patch)
tree55bee5b1797fe57b1c662f9a6938263cd58932b6 /rules.ts
parente8a8cd5624053ef760d1f506ba55ca56fef1e032 (diff)
downloadland-and-freedom-a68c15ccf06f35f7c650f02417898270566f1328.tar.gz
fix issue with momentum medallion played during another players turn
Diffstat (limited to 'rules.ts')
-rw-r--r--rules.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/rules.ts b/rules.ts
index 29c8867..e043307 100644
--- a/rules.ts
+++ b/rules.ts
@@ -1904,9 +1904,11 @@ states.player_turn = {
resolve_spend_hp();
},
end_turn() {
- game.faction_turn = null;
- game.played_card = null;
- game.selected_cards[get_active_faction()] = [];
+ if (game.faction_turn === get_active_faction()) {
+ game.faction_turn = null;
+ game.played_card = null;
+ game.selected_cards[get_active_faction()] = [];
+ }
resolve_active_and_proceed(true);
},
play_to_tableau() {