Skip to content

Commit

Permalink
Merge pull request mtgred#7287 from butzopower/valentao
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahTheDuke authored Feb 19, 2024
2 parents c3b3c1b + 7028e2b commit b65a347
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/clj/game/core/costs.clj
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@
:choices [(str "Remove " (quantify (value cost) "tag"))
(str "Gain " (value cost) " bad publicity")]
:async true
:effect (req (if (= target (str "Gain " (value cost) "bad publicity"))
:effect (req (if (= target (str "Gain " (value cost) " bad publicity"))
(wait-for (gain-bad-publicity state side (make-eid state eid) (value cost) nil)
(complete-with-result state side eid {:msg (str "gains " (value cost) " bad publicity")
:type :tag-or-bad-pub
Expand Down
11 changes: 11 additions & 0 deletions test/clj/game/cards/ice_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -7447,6 +7447,17 @@
(rez state :corp (get-ice state :rd 0)))
"Corp got 1 bad publicity even if runner is considered tagged")))

(deftest valentao-choosing-bad-pub-with-tags
(do-game
(new-game {:corp {:hand ["Valentão"]}})
(play-from-hand state :corp "Valentão" "HQ")
(gain-tags state :runner 1)
(is (changed? [(count-bad-pub state) 1
(count-tags state) 0]
(rez state :corp (get-ice state :hq 0) {:expect-rez false})
(click-prompt state :corp "Gain 1 bad publicity"))
"Corp gained 1 bad publicity")))

(deftest valentao-subs
(do-game
(new-game {:corp {:hand ["Valentão"]
Expand Down

0 comments on commit b65a347

Please sign in to comment.