diff --git a/src/clj/game/cards/resources.clj b/src/clj/game/cards/resources.clj index 0b6560f600..499998b5d2 100644 --- a/src/clj/game/cards/resources.clj +++ b/src/clj/game/cards/resources.clj @@ -1538,10 +1538,10 @@ {:event :end-breach-server :async true :interactive (req true) - :once :per-run + :once :per-turn :req (req (first-event? state side :end-breach-server #(is-mark? state (:from-server (first %))))) :msg "gain 2 [Credits]" - :effect (effect (gain-credits :runner eid 2))}]}) + :effect (effect (gain-credits eid 2))}]}) (defcard "Inside Man" {:recurring 2 diff --git a/test/clj/game/cards/resources_test.clj b/test/clj/game/cards/resources_test.clj index edf18be0e3..5cb0691a8b 100644 --- a/test/clj/game/cards/resources_test.clj +++ b/test/clj/game/cards/resources_test.clj @@ -3038,9 +3038,14 @@ (new-game {:corp {:hand ["Hedge Fund"]} :runner {:deck ["Info Bounty" "Patron"]}}) (take-credits state :corp) + (core/gain state :runner :click 1) (play-from-hand state :runner "Info Bounty") (play-from-hand state :runner "Patron") (core/set-mark state :hq) + (changes-val-macro + 0 (:credit (get-runner)) + "Gained no credits when running not on mark" + (run-empty-server state :archives)) (changes-val-macro 2 (:credit (get-runner)) "Gained 2 credits" @@ -3060,6 +3065,24 @@ "Gained no credits on run on mark when breach is replaced" (run-empty-server state :hq)))) +(deftest info-bounty-with-virtuoso + ;; Info Bounty - interaction with Virtuoso + (do-game + (new-game {:corp {:hand ["Hedge Fund"] + :deck [(qty "Hedge Fund" 10)]} + :runner {:deck ["Info Bounty" "Virtuoso"] + :credits 10}}) + (take-credits state :corp) + (play-from-hand state :runner "Info Bounty") + (play-from-hand state :runner "Virtuoso") + (core/set-mark state :rd) + (changes-val-macro + 2 (:credit (get-runner)) + "Gained 2 credits when finished breaching mark" + (run-empty-server state :rd) + (click-prompt state :runner "No action")) + (click-prompt state :runner "No action"))) + (deftest inside-man-pay-credits-prompt ;; Pay-credits prompt (do-game