Skip to content

mayReach beta ​

Function of @v12-engine/engine

ts
export declare function mayReach(context: EffectContext, effect: EffectDef, target: Entity, missile?: Missile): boolean;

Whether an effect may reach a target, as the game says (the beforeEffect hook): what a game's own effect asks of each unit it does something to without effectTargets (which asks it of every one it gives). True where no handler is there. missile: the missile that reached it, for a missile's hit