Skip to content

validTarget beta ​

Function of @v12-engine/engine

ts
export declare function validTarget(world: World, caster: Entity, ability: AbilityDef, target: Entity): boolean;

Whether an ability may be used on a target: as its targets say, and the canTarget hook