Skip to content

Commit 7a54771

Browse files
authored
Merge pull request #8623 from NBKelly/mileis-u-works-if-grip-is-empty
Mileis u works if grip is empty
2 parents e41d835 + 3a03771 commit 7a54771

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/clj/game/cards/identities.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1556,7 +1556,7 @@
15561556
{:optional
15571557
{:prompt (msg "The top card of R&D is " (:title (first (:deck corp))) ". Trash it?")
15581558
:waiting-prompt true
1559-
:req (req (seq (:hand runner)))
1559+
:req (req (seq (:deck corp)))
15601560
:yes-ability {:cost [(->c :trash-from-deck 1)]
15611561
:once :per-turn
15621562
:msg "add 1 card from Archives to HQ"

test/clj/game/cards/identities_test.clj

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3546,6 +3546,21 @@
35463546
(click-prompts state :corp "Yes" "IPO" "Snare!")
35473547
(is (is-hand? state :corp ["IPO" "Snare!"])))))
35483548

3549+
(deftest meiles-u-vs-empty-grip
3550+
(doseq [[s sn] [[:hq "HQ"] [:rd "R&D"] ["Archives" :archives]]]
3551+
(do-game
3552+
(new-game {:corp {:id "Méliès U: Only the Brightest"
3553+
:hand ["IPO"]
3554+
:deck ["Snare!"]
3555+
:discard ["Beanstalk Royalties"]}
3556+
:runner {:deck ["Ika"]}})
3557+
(take-credits state :corp)
3558+
(click-prompt state :corp "R&D")
3559+
(play-from-hand state :runner "Ika")
3560+
(run-empty-server state :rd)
3561+
(click-prompts state :corp "Yes" "IPO" "Snare!")
3562+
(is (is-hand? state :corp ["IPO" "Snare!"])))))
3563+
35493564
(deftest mercury-chrome-libertador
35503565
(do-game
35513566
(new-game {:corp {:deck [(qty "Hedge Fund" 5)]

0 commit comments

Comments
 (0)