Skip to content

AfterDamage beta ​

Interface of @v12-engine/engine

ts
export interface AfterDamage

Damage that was dealt. The target may have died of it

Members ​

ability ​

ts
readonly ability?: string;

The ability that dealt it, by id; left out for a basic attack

attack ​

ts
readonly attack: boolean;

Whether it was a basic attack, not an ability

crit ​

ts
readonly crit: boolean;

Whether the blow was a critical hit

dealt ​

ts
readonly dealt: number;

What came off its health, after armor and shields

source ​

ts
readonly source?: Entity;

The entity that dealt it, left out when nothing did

tags ​

ts
readonly tags?: readonly string[];

Words of the game's own about it (DamageOptions.tags)

taken ​

ts
readonly taken: number;

The part of that it had health for: overkill left out

target ​

ts
readonly target: Entity;

The entity that took the damage

type ​

ts
readonly type: DamageType;

The damage type it was dealt as