attackShotOf beta
Function of @v12-engine/client
ts
export declare function attackShotOf(visual: Pick<UnitLook, 'attacks' | 'shot'>, weapon?: number, buffs?: readonly string[]): ShotDef | undefined;What a unit shoots with one of its attacks: its attack's shot (AttackLook.shot) over its own (UnitLook.shot) field by field, each as a buff it carries changes it. shotFor in code says over both, where it says