Skip to content

Commit 615aa7f

Browse files
authored
Merge pull request #8507 from butzopower/fix-8506
allow Mycoweb to fire own subs if painted as sentry
2 parents c29fd94 + 2cb9cef commit 615aa7f

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

src/clj/game/cards/ice.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3270,7 +3270,8 @@
32703270
(rez-an-ice {:cost-bonus -2})
32713271
(resolve-another-subroutine
32723272
#(has-subtype? % "Sentry")
3273-
"Resolve subroutine on another rezzed Sentry")
3273+
"Resolve subroutine on a rezzed Sentry"
3274+
true)
32743275
(resolve-another-subroutine
32753276
#(has-subtype? % "Code Gate")
32763277
"Resolve subroutine on another rezzed Code Gate")]})

test/clj/game/cards/ice_test.clj

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5747,6 +5747,29 @@
57475747
(click-prompt state :corp "End the run")
57485748
(is (not (:run @state)) "Run ended by Guard")))
57495749

5750+
(deftest mycoweb-sentry-self-test
5751+
;; Mycoweb - can fire 3rd sub if turned into sentry
5752+
(do-game
5753+
(new-game {:corp {:deck ["Mycoweb" "Ice Wall"] :credits 100}
5754+
:runner {:deck ["Chromatophores"]}})
5755+
(play-from-hand state :corp "Mycoweb" "HQ")
5756+
(play-from-hand state :corp "Ice Wall" "R&D")
5757+
(take-credits state :corp)
5758+
(play-from-hand state :runner "Chromatophores")
5759+
(click-card state :runner "Mycoweb")
5760+
(let [mycoweb (get-ice state :hq 0)
5761+
icewall (get-ice state :rd 0)]
5762+
(run-on state "HQ")
5763+
(rez state :corp mycoweb)
5764+
(run-continue state)
5765+
(card-subroutine state :corp mycoweb 2)
5766+
(click-card state :corp "Mycoweb")
5767+
(is (changed? [(:credit (get-corp)) 0]
5768+
(click-prompt state :corp "Rez an ice, paying 2 less"))
5769+
"able to fire another sub on same Mycoweb")
5770+
(click-card state :corp icewall)
5771+
(is (rezzed? (refresh icewall))))))
5772+
57505773
(deftest n-pot-full-subs-test
57515774
(do-game (etr-sub "N-Pot" 0))
57525775
;; threat 2 - etr

0 commit comments

Comments
 (0)