Skip to content

Commit

Permalink
Fix Stoke the Embers NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahTheDuke committed Jan 13, 2025
1 parent 0f12f37 commit cd5e427
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clj/game/cards/agendas.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2139,8 +2139,8 @@
{:msg (msg "reveal itself from " (zone->name (:previous-zone card)))
:async true
:effect (req (wait-for
(reveal state side target)
(continue-ability state side (score-abi 2) card nil)))}}}]}))
(reveal state side card)
(continue-ability state side (score-abi 2) (get-card state card) nil)))}}}]}))

(defcard "Successful Field Test"
(letfn [(sft [n max-ops]
Expand Down
14 changes: 14 additions & 0 deletions test/clj/game/cards/agendas_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4366,6 +4366,20 @@
(click-card state :corp (get-content state :remote3 0)))
"Corp gained 2 credits (+1 from Hyobu because the agenda was revealed) and put 1 advancement counter on a card")))

(deftest stoke-the-embers-reveal-check
(do-game
(new-game {:corp {:id "Hyoubu Institute: Absolute Clarity"
:hand ["Stoke the Embers" "NGO Front" "Restore"]
:discard ["Stoke the Embers"]}})
(play-from-hand state :corp "NGO Front" "New remote")
(play-from-hand state :corp "Restore")
(click-card state :corp (find-card "Stoke the Embers" (:discard (get-corp))))
(click-prompt state :corp "New remote")
(is (changed? [(:credit (get-corp)) 2]
(click-prompt state :corp "Yes")))
(click-card state :corp "NGO Front")
(is (= ["Stoke the Embers"] (map :title (:last-revealed @state))))))

(deftest successful-field-test
;; Successful Field Test
(do-game
Expand Down

0 comments on commit cd5e427

Please sign in to comment.