Skip to content

Commit dd47734

Browse files
authored
Merge pull request #7093 from francescopellegrini/add-timely-public-release-new-remote-test
2 parents 9a30daf + ffeec1e commit dd47734

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

src/clj/game/cards/agendas.clj

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
update-all-agenda-points]]
99
[game.core.bad-publicity :refer [gain-bad-publicity lose-bad-publicity]]
1010
[game.core.board :refer [all-active-installed all-installed all-installed-corp
11-
all-installed-runner-type get-remote-names server->zone]]
11+
all-installed-runner-type get-remote-names installable-servers server->zone]]
1212
[game.core.card :refer [agenda? asset? can-be-advanced?
1313
corp-installable-type? corp? facedown? faceup? get-agenda-points
1414
get-card get-counters get-title get-zone has-subtype? ice? in-discard? in-hand?
@@ -1962,7 +1962,7 @@
19621962
(continue-ability
19631963
(let [chosen-ice target]
19641964
{:prompt "Choose a server"
1965-
:choices (req (conj (vec servers) "New remote"))
1965+
:choices (req (installable-servers state chosen-ice))
19661966
:async true
19671967
:effect (effect
19681968
(continue-ability

test/clj/game/cards/agendas_test.clj

+12
Original file line numberDiff line numberDiff line change
@@ -4285,6 +4285,18 @@
42854285
(is (empty? (:hand (get-corp))) "Enigma removed from HQ")
42864286
(is (zero? (get-counters (refresh tpr) :agenda)) "Agenda counter was spent"))))
42874287

4288+
(deftest timely-public-release-install-on-new-remote
4289+
;; Install on a new remote
4290+
(do-game
4291+
(new-game {:corp {:hand ["Timely Public Release" "Enigma"]}})
4292+
(play-and-score state "Timely Public Release")
4293+
(let [tpr (get-scored state :corp 0)]
4294+
(card-ability state :corp (refresh tpr) 0)
4295+
(click-card state :corp "Enigma")
4296+
(click-prompt state :corp "New remote")
4297+
(click-prompt state :corp "0")
4298+
(is (= "Enigma" (:title (get-ice state :remote2 0))) "Enigma was installed"))))
4299+
42884300
(deftest timely-public-release-install-on-server-being-run
42894301
;; Install on server being run
42904302
(testing "when approaching the server"

0 commit comments

Comments
 (0)