pub fn visit(
game: &GameState,
event: &ReplacementType,
layer: Option<ReplacementLayer>,
) -> Vec<(CardId, usize)>Expand description
Walk all battlefield cards and collect (card_id, effect_index) pairs for
replacement effects matching the given event type and optional layer.
This is the scan-parity equivalent of Java’s ReplacementHandler.visit().