Skip to content

Commit

Permalink
Merge pull request #6843 from francescopellegrini/fix/meridian-infini…
Browse files Browse the repository at this point in the history
…te-approach
  • Loading branch information
NoahTheDuke authored Dec 19, 2022
2 parents bf84539 + 75edef4 commit 2117b25
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
7 changes: 3 additions & 4 deletions src/clj/game/cards/ice.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2556,10 +2556,9 @@
:effect (req (if (str/starts-with? target "Corp")
(wait-for (gain-credits state :corp 4)
(end-run state :runner eid card))
(do (as-agenda state :runner card -1)
(if current-ice
(encounter-ends state side eid)
(effect-completed state side eid)))))}]})
(wait-for (encounter-ends state side (make-eid state eid))
(as-agenda state :runner card -1)
(effect-completed state side eid))))}]})

(defcard "Merlin"
(grail-ice (do-net-damage 2)))
Expand Down
8 changes: 4 additions & 4 deletions test/clj/game/cards/ice_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4312,17 +4312,17 @@
(new-game {:corp {:deck ["Meridian"]}})
(play-from-hand state :corp "Meridian" "HQ")
(take-credits state :corp)
(run-on state "HQ")
(let [mer (get-ice state :hq 0)]
(rez state :corp (refresh mer))
(run-on state "HQ")
(run-continue state)
(card-subroutine state :corp (refresh mer) 0)
(click-prompt state :runner "Add Meridian to score area")
(is (:run @state) "Run is still live")
(run-continue state)
(is (= 1 (count (:scored (get-runner)))) "In runner score area")
(is (= -1 (:agenda-point (get-runner))) "Worth -1 agenda points")
(is (empty? (get-ice state :hq)) "ice uninstalled"))))
(is (empty? (get-ice state :hq)) "ice uninstalled")
(run-continue state)
(is (not (:run @state)) "Run has ended"))))

(deftest meru-mati
(do-game
Expand Down

0 comments on commit 2117b25

Please sign in to comment.