Skip to content

Commit

Permalink
Merge pull request #7748 from NBKelly/eru-queues-twice
Browse files Browse the repository at this point in the history
Eru queues twice
  • Loading branch information
NoahTheDuke authored Oct 10, 2024
2 parents d2adf16 + 56f4bcc commit f1a09d9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/clj/game/cards/resources.clj
Original file line number Diff line number Diff line change
Expand Up @@ -1358,22 +1358,23 @@
(gain-credits state side eid 9)))}]})

(defcard "Eru Ayase-Pessoa"
(let [constant-ability
(let [constant-effect
{:event :breach-server
:req (req (and (threat-level 3 state)
(= :rd target)
(= :archives (first (:server run)))))
:msg "access 1 additional card"
:effect (effect (access-bonus :rd 1))}
ability
replace-breach-event
(successful-run-replace-breach
{:target-server :archives
:this-card-run true
:mandatory true
:ability {:msg "breach R&D"
:async true
:effect (req (breach-server state :runner eid [:rd] nil))}})]
{:events [constant-ability]
{:events [constant-effect
replace-breach-event]
:abilities [{:action true
:cost [(->c :click 1)]
:msg "make a run on Archives"
Expand All @@ -1383,7 +1384,6 @@
:async true
:effect
(req (wait-for (gain-tags state :runner 1 {:unpreventable true})
(register-events state side card [ability])
(make-run state side eid :archives (get-card state card))))}]}))

(defcard "Fall Guy"
Expand Down
20 changes: 20 additions & 0 deletions test/clj/game/cards/resources_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2315,6 +2315,26 @@
(click-prompt state :runner "No action")
(is (empty? (get-run)) "Run has ended"))))

(deftest eru-ayase-pessoa-threat-3-with-mercury
(do-game
(new-game {:corp {:score-area ["City Works Project"]
:hand []
:deck ["Hedge Fund" "Hedge Fund" "Hedge Fund"]}
:runner {:id "Mercury: Chrome Libertador"
:hand ["Eru Ayase-Pessoa"]}})
(take-credits state :corp)
(play-from-hand state :runner "Eru Ayase-Pessoa")
(let [eru (get-resource state 0)]
(is (changed? [(count-tags state) 1]
(card-ability state :runner (refresh eru) 0))
"Got 1 tag")
(run-continue state)
(click-prompt state :runner "Yes")
(click-prompt state :runner "No action")
(click-prompt state :runner "No action")
(click-prompt state :runner "No action")
(is (empty? (get-run)) "Run has ended"))))

(deftest fan-site
;; Fan Site - Add to score area as 0 points when Corp scores an agenda
(do-game
Expand Down

0 comments on commit f1a09d9

Please sign in to comment.