attackStat beta
Function of @v12-engine/engine
ts
export declare function attackStat(stats: Readonly<Stats>, attack: AttackDef | undefined, which: keyof AttackStats): number;How hard, how fast or how far an attack hits, from the attacker's stats: the stat the attack names (AttackDef.stats), or the unit's own (attackDamage, attackSpeed, attackRange). The unit's own for no attack