canAttack beta
Function of @v12-engine/engine
ts
export declare function canAttack(world: World, attacker: Entity, target: Entity, ordered?: boolean): boolean;Whether an attacker may attack a target: its attack reaches it, it is an enemy, and the canAttack hook agrees. ordered: a player told it to (an attack order), which a game may let it do to its own side (CanAttack.ordered)