summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-08-07 12:57:03 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 12:31:29 +0100
commit6b112e39c3aba3048118802654d832156d6a0522 (patch)
tree335c8b4ac88e178aeea003048ecaf5d1e4019759
parente571f1de33b202c9299915f207fd317dad40120c (diff)
downloadpax-pamir-6b112e39c3aba3048118802654d832156d6a0522.tar.gz
Fix bug with Pashtunwali Values and impact change events.
-rw-r--r--rules.js12
1 files 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)