We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8f64425 + 1dcb6c3 commit 3df6a3fCopy full SHA for 3df6a3f
src/clj/game/cards/assets.clj
@@ -833,9 +833,9 @@
833
834
(defcard "CPC Generator"
835
{:events [{:event :runner-credit-gain
836
- :req (req (first-event? state side :runner-credit-gain
837
- (fn [[context]]
838
- (= :runner-click-credit (:action context)))))
+ :req (req (let [valid-ctx? (fn [[ctx]] (= :runner-click-credit (:action context)))]
+ (and (valid-ctx? targets)
+ (first-event? state side :runner-credit-gain valid-ctx?))))
839
:msg "gain 1 [Credits]"
840
:async true
841
:effect (effect (gain-credits :corp eid 1))}]})
0 commit comments