Skip to content

Commit

Permalink
Merge pull request #6947 from francescopellegrini/fix/tithonium-empty…
Browse files Browse the repository at this point in the history
…-trash-cards-log

fix trash-hosted-cards log when no cards were trashed
  • Loading branch information
NoahTheDuke authored Jul 8, 2023
2 parents ae1c5a5 + 34773e9 commit caf2476
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/clj/game/core/rezzing.clj
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@
(if (can-host? card)
(effect-completed state side eid)
(wait-for (trash-cards state side hosted-cards {:unpreventable true :game-trash true})
(system-msg state side (str "trashes " (string/join ", " (map #(card-str state %) hosted-cards))
" because " (:title card)
" cannot host cards"))
(when (pos? (count hosted-cards))
(system-msg state side (str "trashes " (string/join ", " (map #(card-str state %) hosted-cards))
" because " (:title card)
" cannot host cards")))
(effect-completed state side eid)))))

(defn- complete-rez
Expand Down

0 comments on commit caf2476

Please sign in to comment.