Skip to content

Commit 1bc3695

Browse files
authored
Merge pull request #8572 from filipesilva/issue-8569
fix: baker effect should work if trashed
2 parents c7b20ff + 4798318 commit 1bc3695

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

src/clj/game/core/choose_one.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
apply-optional (and optional (not next-optional))
2727
xs (if-not apply-optional xs (conj xs {:option "Done"}))
2828
base-map (select-keys args [:action :player :once :unregister-once-resolved :event
29-
:label :change-in-game-state :location :additional-cost])
29+
:label :change-in-game-state :location :additional-cost :duration])
3030
;; is a choice payable
3131
payable? (fn [x state side eid card targets]
3232
(when (or (not (:cost x))

test/clj/game/cards/programs_test.clj

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,24 @@
10511051
(click-prompt state :runner "End the run")
10521052
(is (not (:run @state)) "Skunkworks fired on HQ approach")))
10531053

1054+
(deftest baker-trashed-mid-run-8569
1055+
(do-game
1056+
(new-game {:runner {:hand ["Baker" "\"Knickknack\" O'Brian" "Mantle"]
1057+
:credits 10}
1058+
:corp {:hand [(qty "Rashida Jaheem" 3)]
1059+
:deck ["Hostile Takeover"]}})
1060+
(take-credits state :corp)
1061+
(play-from-hand state :runner "Baker")
1062+
(play-from-hand state :runner "\"Knickknack\" O'Brian")
1063+
(play-from-hand state :runner "Mantle")
1064+
(card-ability state :runner (get-program state 0) 0)
1065+
(click-card state :runner (get-program state 0))
1066+
(is (is-discard? state :runner ["Baker"]))
1067+
(run-continue-until state :success)
1068+
(click-prompt state :runner "Pay 1 [Credits]: Switch to HQ")
1069+
(click-card state :runner "Mantle")
1070+
(do-trash-prompt state 1)))
1071+
10541072
(deftest bankroll
10551073
;; Bankroll - Includes check for Issue #4334
10561074
(do-game

0 commit comments

Comments
 (0)