Skip to content

Commit

Permalink
Merge pull request #7769 from NBKelly/fix-basic-action-log-msg
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahTheDuke authored Sep 24, 2024
2 parents a5b5e0b + 0e800ad commit 4f1de1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clj/game/cards/basic.clj
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
:async true
:req (req tagged)
:prompt "Choose a resource to trash"
:msg (msg "trash " (:title (:card context)))
:msg (msg "trash " (:title target))
;; I hate that we need to modify the basic action card like this, but I don't think there's any way around it -nbkelly, '24
:choices {:req (req (and (if (and (->> (all-active-installed state :runner)
(filter (fn [c] (untrashable-while-resources? c)))
Expand Down Expand Up @@ -143,7 +143,7 @@
nil additional-costs)
(system-msg state side (str (:msg async-result) " as an additional cost to trash " (:title target)))
(complete-with-result state side eid target))))}
card nil)
card targets)
(if async-result
(trash state side eid target nil)
(effect-completed state side eid))))))}
Expand Down
1 change: 1 addition & 0 deletions test/clj/game/cards/basic_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
(gain-tags state :runner 1)
(trash-resource state)
(click-card state :corp fs)
(is (last-log-contains? state "to trash Fan Site") "Logged correctly")
(is (= 1 (count (:discard (get-runner)))) "Fan Site got trashed"))))

(deftest corp-basic-actions-purge
Expand Down

0 comments on commit 4f1de1b

Please sign in to comment.