Skip to content

Commit 654b125

Browse files
authored
Merge pull request #6810 from francescopellegrini/fix/info-bounty-once-limitation
2 parents 07b5a37 + daa6a38 commit 654b125

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

src/clj/game/cards/resources.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1538,10 +1538,10 @@
15381538
{:event :end-breach-server
15391539
:async true
15401540
:interactive (req true)
1541-
:once :per-run
1541+
:once :per-turn
15421542
:req (req (first-event? state side :end-breach-server #(is-mark? state (:from-server (first %)))))
15431543
:msg "gain 2 [Credits]"
1544-
:effect (effect (gain-credits :runner eid 2))}]})
1544+
:effect (effect (gain-credits eid 2))}]})
15451545

15461546
(defcard "Inside Man"
15471547
{:recurring 2

test/clj/game/cards/resources_test.clj

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3038,9 +3038,14 @@
30383038
(new-game {:corp {:hand ["Hedge Fund"]}
30393039
:runner {:deck ["Info Bounty" "Patron"]}})
30403040
(take-credits state :corp)
3041+
(core/gain state :runner :click 1)
30413042
(play-from-hand state :runner "Info Bounty")
30423043
(play-from-hand state :runner "Patron")
30433044
(core/set-mark state :hq)
3045+
(changes-val-macro
3046+
0 (:credit (get-runner))
3047+
"Gained no credits when running not on mark"
3048+
(run-empty-server state :archives))
30443049
(changes-val-macro
30453050
2 (:credit (get-runner))
30463051
"Gained 2 credits"
@@ -3060,6 +3065,24 @@
30603065
"Gained no credits on run on mark when breach is replaced"
30613066
(run-empty-server state :hq))))
30623067

3068+
(deftest info-bounty-with-virtuoso
3069+
;; Info Bounty - interaction with Virtuoso
3070+
(do-game
3071+
(new-game {:corp {:hand ["Hedge Fund"]
3072+
:deck [(qty "Hedge Fund" 10)]}
3073+
:runner {:deck ["Info Bounty" "Virtuoso"]
3074+
:credits 10}})
3075+
(take-credits state :corp)
3076+
(play-from-hand state :runner "Info Bounty")
3077+
(play-from-hand state :runner "Virtuoso")
3078+
(core/set-mark state :rd)
3079+
(changes-val-macro
3080+
2 (:credit (get-runner))
3081+
"Gained 2 credits when finished breaching mark"
3082+
(run-empty-server state :rd)
3083+
(click-prompt state :runner "No action"))
3084+
(click-prompt state :runner "No action")))
3085+
30633086
(deftest inside-man-pay-credits-prompt
30643087
;; Pay-credits prompt
30653088
(do-game

0 commit comments

Comments
 (0)