Skip to content

EffectLanded beta ​

Interface of @v12-engine/engine

ts
export interface EffectLanded

An effect of an ability has reached one target (effectLanded), after its handler ran: what a game does with each one an ability reached (a passive's stack for each hit, an execute below a threshold). For every target the handler's effectTargets gave; asked only where a handler is there

Members ​

ability ​

ts
readonly ability: AbilityDef;

The ability the effect is from

caster ​

ts
readonly caster: Entity;

The unit that cast the ability the effect is from

effect ​

ts
readonly effect: EffectDef;

The effect that reached the target, as it runs

level ​

ts
readonly level: number;

The level the ability was cast at

origin ​

ts
readonly origin?: Entity | Vec2;

What it went off from, when not the caster: an entity or a point

point ​

ts
readonly point: Vec2;

Where the effect landed

target ​

ts
readonly target: Entity;

Whom it reached: dead now, maybe, of it