SpellAim beta
TypeAlias of @v12-engine/engine/ai
ts
export type SpellAim = (ai: Brain, caster: EntityState, foes: readonly EntityState[], friends: readonly EntityState[], level: number) => {
point: Vec2;
target?: number;
to?: Vec2;
} | null | undefined;Where to use an ability, in code (MicroOptions.spells, by ability id): where (point) and on whom (target), null for not now, undefined to leave it to what the kit works out from the effects. foes are the enemies within the ability's reach of the caster, friends its own and its allies' fighters near it