diff options
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 16 |
1 files changed, 2 insertions, 14 deletions
@@ -197,7 +197,6 @@ const engine_functions = { end_of_player_turn, end_of_turn, end_of_year_cleanup, - end_resolving_event_effects, setup_bag_of_glory, setup_choose_card, setup_final_bid, @@ -975,7 +974,8 @@ states.play_card = { const faction = get_active_faction(); game.selected_cards[faction].push(c); game.card_played = 0; - game.played_card = game.selected_cards[faction][0]; + game.played_card = game.selected_cards[faction][game.selected_cards[faction].length - 1]; + log_header("C" + game.played_card, faction); resolve_active_and_proceed(); }, }; @@ -1573,12 +1573,8 @@ states.player_turn = { const faction = get_active_faction(); log('Played for Event:'); const { effects } = play_card_for_event(faction); - update_active_node_args({ - resolving_event: true, - }); const node = create_effects_node(effects, 'player_event'); node.c.push(create_function_node('trash_card', faction)); - node.c.push(create_function_node('end_resolving_event_effects')); insert_before_active_node(node); next(); }, @@ -2230,14 +2226,6 @@ function end_of_year_cleanup() { game.glory_current_year = null; next(); } -function end_resolving_event_effects() { - const node = get_nodes_for_state('player_turn')[0]; - node.a = { - ...(node.a || {}), - resolving_event: false, - }; - resolve_active_and_proceed(); -} function gain_hero_points_in_player_order(factions, value) { for (const f of get_player_order()) { if (factions.includes(f)) { |