Skip to content

Commit

Permalink
Merge pull request #7767 from NBKelly/env-testing-and-muse-interact
Browse files Browse the repository at this point in the history
environmental testing is not silent on 3 counters
  • Loading branch information
NoahTheDuke authored Oct 10, 2024
2 parents 60b4a49 + b6f397a commit 4713896
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/clj/game/cards/resources.clj
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,7 @@

(defcard "Environmental Testing"
{:events [{:event :runner-install
:silent (req true)
:silent (req (not= 3 (get-counters card :power)))
:req (req (and (or (hardware? (:card context))
(program? (:card context)))
(not (:facedown? context))))
Expand Down
15 changes: 15 additions & 0 deletions test/clj/game/cards/resources_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2290,6 +2290,21 @@
"Env. Testing was trashed"))
"Env Testing pops for 9c"))))

(deftest environmental-testing-interactive-at-3
;; can just be silent if there's not 3 counters
(do-game
(new-game {:runner {:hand ["Environmental Testing" (qty "Ika" 3) "Muse"]
:deck ["Ika"]}})
(take-credits state :corp)
(play-from-hand state :runner "Environmental Testing")
(dotimes [_ 3]
(play-from-hand state :runner "Ika"))
(take-credits state :runner)
(take-credits state :corp)
(play-from-hand state :runner "Muse")
(is (= ["Environmental Testing" "Muse"] (sort (prompt-titles :runner)))
"Option to trigger either muse of environmental testing first")))

(deftest eru-ayase-pessoa
(do-game
(new-game {:corp {:hand ["IPO" "IPO" "City Works Project"]
Expand Down

0 comments on commit 4713896

Please sign in to comment.