Skip to content

conditionHolds beta ​

Function of @v12-engine/engine

ts
export declare function conditionHolds(context: EffectContext, condition: UnitCondition | UnitConditionCheck | undefined, unit: Entity | undefined): boolean;

Whether what an if asks of a unit holds (UnitCondition, or code), as the effect of the context lands: every part it says. Nothing said holds; of no unit, nothing said does not