Skip to main content

can_replace

Function can_replace 

Source
pub fn can_replace(
    effect: &ReplacementEffect,
    event: &ReplacementEvent,
    _game: &GameState,
    source_card: &Card,
) -> bool
Expand description

Mirrors Java ReplacePlanarDiceResult.canReplace(). Java checks ValidRoll; we check ValidPlayer as the primary filter.