Skip to content

Commit

Permalink
Merge pull request #6037 from kjchiu/subliminal-should-reveal
Browse files Browse the repository at this point in the history
subliminal recur should reveal
  • Loading branch information
NoahTheDuke authored Sep 29, 2021
2 parents 377fc28 + ea6a8e1 commit fd9a50e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/clj/game/cards/operations.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2306,7 +2306,12 @@
:prompt "Add Subliminal Messaging to HQ?"
:yes-ability
{:msg "add Subliminal Messaging to HQ"
:effect (effect (move card :hand))}}}]})
:async true
:effect (req (wait-for (reveal state side (make-eid state eid) card))
(move state side card :hand)
(effect-completed state side eid))}}}]})



(defcard "Success"
(letfn [(advance-n-times [state side eid card target n]
Expand Down
4 changes: 3 additions & 1 deletion test/clj/game/cards/operations_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3738,7 +3738,8 @@
;; Subliminal Messaging - Playing/trashing/milling will all prompt returning to hand
(testing "Basic test"
(do-game
(new-game {:corp {:deck [(qty "Subliminal Messaging" 3)]}
(new-game {:corp {:id "Hyoubu Institute: Absolute Clarity"
:deck [(qty "Subliminal Messaging" 3)]}
:runner {:id "Noise: Hacker Extraordinaire"
:deck [(qty "Cache" 3) "Utopia Shard"]}})
(play-from-hand state :corp "Subliminal Messaging")
Expand All @@ -3756,6 +3757,7 @@
(click-prompt state :corp "Yes")
(is (= 3 (count (:hand (get-corp)))) "All 3 Subliminals returned to HQ")
(core/move state :corp (find-card "Subliminal Messaging" (:hand (get-corp))) :deck)
(is (= 10 (:credit (get-corp))) "Only first subliminal should give Hyoubu reveal credit")
(take-credits state :corp)
(play-from-hand state :runner "Cache")
(play-from-hand state :runner "Utopia Shard")
Expand Down

0 comments on commit fd9a50e

Please sign in to comment.