Skip to content

UnitConditionCheck beta ​

TypeAlias of @v12-engine/engine

ts
export type UnitConditionCheck = (context: EffectValueContext, unit: Entity) => boolean;

An if's condition in code: whether it holds of the unit (the caster or the target), as the effect lands