Skip to content

attackReaches beta ​

Function of @v12-engine/engine

ts
export declare function attackReaches(world: World, attacker: Entity, target: Entity): boolean;

Whether one of an attacker's attacks can hit a target where it is, whoever's it is: the ground, the air, the kinds it names (pickAttack). For a canAttack handler that lets a unit attack what is not an enemy