Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smc log doubled #7859

Merged
merged 1 commit into from
Nov 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/clj/game/cards/programs.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2957,7 +2957,6 @@
{:abilities [{:req (req (not (install-locked? state side)))
:label "Install a program from the stack"
:cost [(->c :trash-can) (->c :credit 2)]
:msg (msg "install a program from the stack")
:async true
:effect (effect
(continue-ability
Expand All @@ -2973,14 +2972,17 @@
(seq))
["Done"]))
:async true
:waiting-prompt true
:effect (req (trigger-event state side :searched-stack)
(shuffle! state side :deck)
(if (= target "Done")
(do (system-msg state side (str (:latest-payment-str eid) " to shuffle the Stack"))
(effect-completed state side eid))
(runner-install state side (assoc eid :source card :source-type :runner-install) target {:msg-keys {:install-source card
:display-origin true
:include-cost-from-eid eid}})))}
(wait-for (runner-install state side (assoc (make-eid state eid) :source card :source-type :runner-install) target {:msg-keys {:install-source card
:display-origin true
:include-cost-from-eid eid}})
(when-not async-result (system-msg state side (str (:latest-payment-str eid) " to shuffle the Stack")))
(effect-completed state side eid))))}
card nil))}]})

(defcard "Sharpshooter"
Expand Down
Loading