Skip to content

Cards moving zones during breaches give relevant info if known#8345

Merged
NoahTheDuke merged 7 commits intomtgred:masterfrom
NBKelly:poetri-gives-appropriate-info
Sep 3, 2025
Merged

Cards moving zones during breaches give relevant info if known#8345
NoahTheDuke merged 7 commits intomtgred:masterfrom
NBKelly:poetri-gives-appropriate-info

Conversation

@NBKelly
Copy link
Collaborator

@NBKelly NBKelly commented Sep 2, 2025

Cards that have been seen during a breach are known (unless the zone gets shuffled).

This means poetri installs can be more informative for the runner.

This also means that discards during a breach may be more informative for the runner too, ie if the card is known it goes to the discard faceup.

Closes #8339

@NBKelly NBKelly marked this pull request as ready for review September 2, 2025 04:51
@NBKelly NBKelly changed the title Poetri gives appropriate info Cards moving zones during breaches give relevant info if known Sep 2, 2025
;; if cards are no longer candidates, but get installed during a breach, it is known
from-zone (or (#{:discard :deck :hand} (first (get-zone card)))
(second (get-zone card)))
args (update-in args [:msg-keys :known] #(or % (contains? (set (get-in @state [:breach :known-cids from-zone] [])) (:cid card))))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so this will set :known to a boolean?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And is this duplicated logic elsewhere? Looks like you're calculating this in the new function too.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sets return the matching member (or nil), so from-zone will be either :discard/:deck/:hand, or :remote[x].
But yeah, that's something I lifted 1:1 from access. Maybe it deserves a helper (or already has one that just wasn't being used).

@NoahTheDuke NoahTheDuke merged commit 19cc06c into mtgred:master Sep 3, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

If the card installed via poetri (or another effect) is already accessed, it gets logged

2 participants