Skip to main content

object_x_count

Function object_x_count 

Source
pub fn object_x_count(game: &GameState, objects: &[CardId], expr: &str) -> i32
Expand description

Evaluate object-based X-count expressions. Mirrors Java’s AbilityUtils.objectXCount(List<?>, String, Card, CardTraitBase).

Counts or sums properties across a list of card IDs.