Skip to main content

get_attack_cost

Function get_attack_cost 

Source
pub fn get_attack_cost(
    st_ab: &StaticAbility,
    attacker: &Card,
    target: PlayerId,
    source: &Card,
) -> Option<String>
Expand description

Get the cost required to attack with a creature. Returns the cost string if applicable, or None. Mirrors Java’s StaticAbilityCantAttackBlock.getAttackCost().