Skip to content

Commit 6f217b2

Browse files
authored
Merge pull request #8479 from NBKelly/stoke-vs-trust-op
test for stoke vs trust op
2 parents e8f119a + 9b1134a commit 6f217b2

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

src/clj/game/core/installing.clj

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@
236236
eid (assoc eid :source moved-card)]
237237
(queue-event state :corp-install {:card (get-card state moved-card)
238238
:install-state install-state})
239+
(when-let [dre (:derezzed-events cdef)]
240+
(register-events state side moved-card (map #(assoc % :condition :derezzed) dre)))
239241
(update-disabled-cards state)
240242
(when (:breach @state)
241243
(swap! state update-in [:breach :installed] (fnil conj #{}) (:cid moved-card)))
@@ -262,9 +264,7 @@
262264
(let [eid (assoc eid :source-type :rez)]
263265
(cond
264266
(agenda? moved-card)
265-
(do (when-let [dre (:derezzed-events cdef)]
266-
(register-events state side moved-card (map #(assoc % :condition :derezzed) dre)))
267-
(reveal-if-unrezzed state side eid moved-card))
267+
(reveal-if-unrezzed state side eid moved-card)
268268
(zero? cost-bonus)
269269
(wait-for
270270
(checkpoint state nil (make-eid state eid))
@@ -290,10 +290,8 @@
290290
(wait-for (checkpoint state nil (make-eid state eid))
291291
(complete-with-result state side eid (get-card state moved-card))))
292292
;; All other cards
293-
(do (when-let [dre (:derezzed-events cdef)]
294-
(register-events state side moved-card (map #(assoc % :condition :derezzed) dre)))
295-
(wait-for (checkpoint state nil (make-eid state eid))
296-
(complete-with-result state side eid (get-card state moved-card)))))))))))
293+
(wait-for (checkpoint state nil (make-eid state eid))
294+
(complete-with-result state side eid (get-card state moved-card))))))))))
297295

298296
(defn get-slot
299297
[state card server {:keys [host-card]}]

test/clj/game/cards/agendas_test.clj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4642,6 +4642,16 @@
46424642
(click-card state :corp (get-content state :remote3 0)))
46434643
"Corp gained 2 credits (+1 from Hyobu because the agenda was revealed) and put 1 advancement counter on a card")))
46444644

4645+
(deftest stoke-vs-trust-op
4646+
(do-game
4647+
(new-game {:corp {:hand ["Trust Operation"]
4648+
:discard ["Stoke the Embers"]}
4649+
:runner {:tags 1}})
4650+
(play-cards state :corp ["Trust Operation" "Done"
4651+
"Stoke the Embers" "New remote"
4652+
"Yes" "Stoke the Embers"])
4653+
(is (= 1 (get-counters (get-content state :remote1 0) :advancement)) "1 adv")))
4654+
46454655
(deftest stoke-vs-ip-enforcement
46464656
(testing "1 floating tag"
46474657
(do-game

0 commit comments

Comments
 (0)