Skip to content

Commit 5af4f93

Browse files
authored
Merge pull request #7919 from NoahTheDuke/nb/fix-stoke-the-embers
Fix Stoke the Embers NPE
2 parents 0f12f37 + cd5e427 commit 5af4f93

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

src/clj/game/cards/agendas.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2139,8 +2139,8 @@
21392139
{:msg (msg "reveal itself from " (zone->name (:previous-zone card)))
21402140
:async true
21412141
:effect (req (wait-for
2142-
(reveal state side target)
2143-
(continue-ability state side (score-abi 2) card nil)))}}}]}))
2142+
(reveal state side card)
2143+
(continue-ability state side (score-abi 2) (get-card state card) nil)))}}}]}))
21442144

21452145
(defcard "Successful Field Test"
21462146
(letfn [(sft [n max-ops]

test/clj/game/cards/agendas_test.clj

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4366,6 +4366,20 @@
43664366
(click-card state :corp (get-content state :remote3 0)))
43674367
"Corp gained 2 credits (+1 from Hyobu because the agenda was revealed) and put 1 advancement counter on a card")))
43684368

4369+
(deftest stoke-the-embers-reveal-check
4370+
(do-game
4371+
(new-game {:corp {:id "Hyoubu Institute: Absolute Clarity"
4372+
:hand ["Stoke the Embers" "NGO Front" "Restore"]
4373+
:discard ["Stoke the Embers"]}})
4374+
(play-from-hand state :corp "NGO Front" "New remote")
4375+
(play-from-hand state :corp "Restore")
4376+
(click-card state :corp (find-card "Stoke the Embers" (:discard (get-corp))))
4377+
(click-prompt state :corp "New remote")
4378+
(is (changed? [(:credit (get-corp)) 2]
4379+
(click-prompt state :corp "Yes")))
4380+
(click-card state :corp "NGO Front")
4381+
(is (= ["Stoke the Embers"] (map :title (:last-revealed @state))))))
4382+
43694383
(deftest successful-field-test
43704384
;; Successful Field Test
43714385
(do-game

0 commit comments

Comments
 (0)