From 6b112e39c3aba3048118802654d832156d6a0522 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 7 Aug 2022 12:57:03 +0200 Subject: Fix bug with Pashtunwali Values and impact change events. --- rules.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rules.js b/rules.js index a66d253..fc70490 100644 --- a/rules.js +++ b/rules.js @@ -2595,8 +2595,12 @@ const events_if_discarded = { } function goto_favored_suit_event(suit) { - game.state = 'favored_suit' - game.where = suit + if (!game.events.pashtunwali_values) { + game.state = 'favored_suit' + game.where = suit + } else { + goto_discard_events() + } } states.favored_suit = { @@ -2716,10 +2720,6 @@ const events_if_purchased = { } -// TODO: other_persuasive_methods -// TODO: pashtunwali_values -// TODO: rebuke - function check_public_withdrawal() { // Remove any money placed on card "Public Withdrawal" from the game. for (let row = 0; row < 2; ++row) -- cgit v1.2.3