Skip to content
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/ice.clj
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@
(effect
(continue-ability
state side {:async true
:prompt "Choose the ice"
:prompt label
:choices {:req (req (pred card target))
:all true}
:effect (effect
Expand Down Expand Up @@ -3384,6 +3384,7 @@

(defcard "Mycoweb"
{:subroutines [{:label "Install an ice from Archives, ignoring all costs"
:prompt "Choose an ice to install from Archives"
:show-discard true
:choices {:req (req (ice? target)
(in-discard? target))}
Expand Down
3 changes: 3 additions & 0 deletions test/clj/game/cards/ice_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -5926,12 +5926,14 @@
(deftest mycoweb-code-gate-test
(do-game
(subroutine-test "Mycoweb" 0 {:corp {:discard ["Enigma"]}})
(is (= "Choose an ice to install from Archives" (:msg (prompt-map :corp))))
(click-card state :corp "Enigma")
(click-prompt state :corp "HQ")
(card-subroutine state :corp (get-ice state :hq 0) 1)
(click-card state :corp "Enigma")
(is (rezzed? (get-ice state :hq 1)) "Enigma rezzed")
(card-subroutine state :corp (get-ice state :hq 0) 3)
(is (= "Resolve subroutine on another rezzed Code Gate" (:msg (prompt-map :corp))))
(click-card state :corp "Enigma")
(click-prompt state :corp "End the run")
(is (not (:run @state)) "Run ended by enigma")))
Expand All @@ -5945,6 +5947,7 @@
(click-card state :corp "Guard")
(is (rezzed? (get-ice state :hq 1)) "Guard rezzed")
(card-subroutine state :corp (get-ice state :hq 0) 2)
(is (= "Resolve subroutine on a rezzed Sentry" (:msg (prompt-map :corp))))
(click-card state :corp "Guard")
(click-prompt state :corp "End the run")
(is (not (:run @state)) "Run ended by Guard")))
Expand Down
Loading