Skip to main content

can_attack_defender

Function can_attack_defender 

Source
pub fn can_attack_defender(
    game: &GameState,
    cards: &[Card],
    card: &Card,
    defender: PlayerId,
) -> bool
Expand description

Check if a creature can attack a specific defender despite having Defender keyword. Mirrors Java’s StaticAbilityCantAttackBlock.canAttackDefender().