Skip to main content

can_attack

Function can_attack 

Source
pub fn can_attack(card: &Card, num_attackers: usize) -> bool
Expand description

Check if a creature can attack given its restrictions and the number of other attackers. Mirrors Java’s AttackRestriction.canAttack().