Skip to content

Commit 98648cd

Browse files
authored
Merge pull request #8446 from NBKelly/next-big-thing-allows-big-shuffles
Next big thing allows big shuffles
2 parents d19dac9 + 14f3fe8 commit 98648cd

File tree

2 files changed

+23
-13
lines changed

2 files changed

+23
-13
lines changed

src/clj/game/cards/agendas.clj

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1525,19 +1525,18 @@
15251525
(play-sfx state side "click-card-2")
15261526
(wait-for
15271527
(draw state side 4)
1528-
(let [c-hand (count (:hand corp))]
1529-
(continue-ability
1530-
state side
1531-
{:prompt "Shuffle any number of cards into R&D"
1532-
:waiting-prompt true
1533-
:choices {:max c-hand
1534-
:card (every-pred corp? in-hand?)}
1535-
:msg (msg "shuffle " (quantify (count targets) "card")
1536-
" from HQ into R&D")
1537-
:effect (req (doseq [t targets]
1538-
(move state side t :deck))
1539-
(shuffle! state side :deck))}
1540-
card nil))))}]})
1528+
(continue-ability
1529+
state side
1530+
{:prompt "Shuffle any number of cards into R&D"
1531+
:waiting-prompt true
1532+
:choices {:max (req (count (:hand corp)))
1533+
:card (every-pred corp? in-hand?)}
1534+
:msg (msg "shuffle " (quantify (count targets) "card")
1535+
" from HQ into R&D")
1536+
:effect (req (doseq [t targets]
1537+
(move state side t :deck))
1538+
(shuffle! state side :deck))}
1539+
card nil)))}]})
15411540

15421541
(defcard "NEXT Wave 2"
15431542
{:on-score

test/clj/game/cards/agendas_test.clj

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2758,6 +2758,17 @@
27582758
(click-prompt state :corp "Done")
27592759
(is (= 2 (count (:hand (get-corp)))) "Next Big Thing shuffled 2 cards")))
27602760

2761+
(deftest next-big-thing-shuffle-all-back-test
2762+
(do-game
2763+
(new-game {:corp {:hand ["Next Big Thing" "Subliminal Messaging" "Ice Wall" "Vanilla"]
2764+
:deck ["Hedge Fund" "NGO Front" "Project Atlas" "IPO"]}})
2765+
(play-and-score state "Next Big Thing")
2766+
(card-ability state :corp (get-scored state :corp 0) 0)
2767+
(is (= 7 (count (:hand (get-corp)))) "Next Big Thing drew 2 cards")
2768+
(doseq [c (map :title (:hand (get-corp)))]
2769+
(click-card state :corp c))
2770+
(is (= 0 (count (:hand (get-corp)))) "Next Big Thing shuffled 7 cards")))
2771+
27612772
(deftest next-wave-2
27622773
;; NEXT Wave 2
27632774
(do-game

0 commit comments

Comments
 (0)