Skip to content

attacksCounted beta ​

Function of @v12-engine/engine

ts
export declare function attacksCounted(entity: Entity, id: string, place?: number, from?: 'ability' | 'item' | 'buff'): number;

How many of a unit's attacks are counted towards an onHit that goes off every so many (EffectFields.every): the one of an ability's passive at place in its list, of an item's (item: true) or of a buff's (buff: true). 0 when none are: for a screen to show, a test to check