Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix for Titan + Broad Daylight #4304

Merged
merged 1 commit into from
Jul 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/clj/game/cards/agendas.clj
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@
(letfn [(add-counters [state side card eid]
(add-counter state :corp card :agenda (count-bad-pub state))
(effect-completed state side eid))]
{:effect (effect
{:async true
:effect (effect
(continue-ability
{:optional
{:prompt "Take 1 bad publicity?"
Expand Down
15 changes: 14 additions & 1 deletion test/clj/game_test/cards/agendas.clj
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,20 @@
(click-prompt state :corp "0") ;; Corp doesn't pump trace, base 3
(click-prompt state :runner "5") ;; Runner pumps trace; wins trace
(is (= 2 (count-bad-pub state)) "Gains additional bad pub")
(is (= 2 (get-counters (get-scored state :corp 0) :agenda)) "Should gain 2 agenda counter"))))
(is (= 2 (get-counters (get-scored state :corp 0) :agenda)) "Should gain 2 agenda counter")))
(testing "Interaction with Titan"
(do-game
(new-game {:corp {:id "Titan Transnational: Investing In Your Future"
:deck [(qty "Broad Daylight" 3)]}})
(is (zero? (count-bad-pub state)) "Corp start with no bad pub")
(play-and-score state "Broad Daylight")
(click-prompt state :corp "No")
(is (= 0 (count-bad-pub state)) "Corp gains no bad pub")
(is (= 1 (get-counters (get-scored state :corp 0) :agenda)) "Should gain 1 agenda counters")
(play-and-score state "Broad Daylight")
(click-prompt state :corp "Yes")
(is (= 1 (count-bad-pub state)) "Corp gains 1 bad pub")
(is (= 2 (get-counters (get-scored state :corp 1) :agenda)) "Should gain 2 agenda counters"))))

(deftest cfc-excavation-contract
;; CFC Excavation Contract
Expand Down