Skip to content

Cleave beta ​

Interface of @v12-engine/engine

ts
export interface Cleave

What a blow from up close does to the enemies around its target (AttackDef.cleave, BuffDef.cleave): a part of its damage, before their armor, for each of them within radius of the target and, where angle says, within a cone of that angle that opens from the attacker through the target (so ahead of the attacker, round and behind the target). Not the target itself, nor anyone the attack could not hit

Members ​

angle ​

ts
angle?: number;

How wide the cone is, in radians (1.57: a quarter turn). All the way round the target when left out

part ​

ts
part: Scaled;

The part of the blow's damage each other enemy takes, by level for a buff's: 0.5 is half

radius ​

ts
radius: number;

How far from the target's edge the enemies it reaches stand