Skip to content

Commit c008ba0

Browse files
authored
Merge pull request #6899 from francescopellegrini/fix/red-team-ability-non-interactive
2 parents 26cdbce + 3ffa284 commit c008ba0

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/clj/game/cards/resources.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2514,7 +2514,7 @@
25142514
{:event :successful-run
25152515
:req (req this-card-run)
25162516
:msg (msg "gain " (min 3 (get-counters card :credit)) " [Credits]")
2517-
:silent (req true)
2517+
:interactive (req true)
25182518
:async true
25192519
:effect (req (let [credits (min 3 (get-counters card :credit))]
25202520
(add-counter state side card :credit (- credits))

test/clj/game/cards/resources_test.clj

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4898,6 +4898,22 @@
48984898
(is (= 9 (:credit (get-runner))) "Runner still has 9 credits")
48994899
(is (= 3 (get-counters (get-resource state 0) :credit)) "Red team still has 3 credits remaining")))
49004900

4901+
(deftest red-team-is-interactive
4902+
;; Red Team ability is interactive
4903+
(do-game
4904+
(new-game {:runner {:hand ["Red Team" "World Tree"]
4905+
:deck ["Liberated Account"]
4906+
:credits 11}})
4907+
(take-credits state :corp)
4908+
(play-from-hand state :runner "Red Team")
4909+
(play-from-hand state :runner "World Tree")
4910+
(card-ability state :runner (get-resource state 0) 0)
4911+
(click-prompt state :runner "Archives")
4912+
(run-continue state)
4913+
(click-prompt state :runner "Red Team")
4914+
(click-card state :runner "Red Team")
4915+
(click-prompt state :runner "Liberated Account")))
4916+
49014917
(deftest rolodex
49024918
;; Rolodex - Full test
49034919
(do-game

0 commit comments

Comments
 (0)