unitMatches beta
Function of @v12-engine/engine
ts
export declare function unitMatches(world: World, condition: UnitCondition, unit: Entity, of?: PlayerId): boolean;Whether what a UnitCondition says holds of a unit, out of an effect: every part it says. is (enemy or ally) is asked of the player of: it never holds with none. What an if asks (conditionHolds), what an effect's where asks and what a query of the world asks (world.query)