Skip to content

Commit 3df6a3f

Browse files
authored
Merge pull request #8538 from NBKelly/cpc-generator-fix
cpc generator fix
2 parents 8f64425 + 1dcb6c3 commit 3df6a3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/clj/game/cards/assets.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -833,9 +833,9 @@
833833

834834
(defcard "CPC Generator"
835835
{:events [{:event :runner-credit-gain
836-
:req (req (first-event? state side :runner-credit-gain
837-
(fn [[context]]
838-
(= :runner-click-credit (:action context)))))
836+
:req (req (let [valid-ctx? (fn [[ctx]] (= :runner-click-credit (:action context)))]
837+
(and (valid-ctx? targets)
838+
(first-event? state side :runner-credit-gain valid-ctx?))))
839839
:msg "gain 1 [Credits]"
840840
:async true
841841
:effect (effect (gain-credits :corp eid 1))}]})

0 commit comments

Comments
 (0)