Skip to content

Summoned beta ​

Interface of @v12-engine/engine

ts
export interface Summoned

On a unit a spell brought: who brought it (by, its master). Dispelling hurts what carries it. A summon effect gives it the rest: whether it walks with its master when it has nothing to do, whom it goes for, and whether it dies with its master (diesWithMaster; a raiseDead unit has only by, and outlives the one that raised it)

Members ​

aggro ​

ts
aggro?: SummonAggro;

Whom it takes up: nearest what any idle unit finds; mastersAttacker also whoever hits its master, at once and ahead of what is nearer; none leaves it to the game's targetScore and orders

at ​

ts
at?: number;

The game's time, in seconds, it was brought at

by ​

ts
by: EntityId;

The master: who cast the spell

diesWithMaster ​

ts
diesWithMaster?: boolean;

Dies when its master does

foe ​

ts
foe?: EntityId;

The last who hit its master (aggro: 'mastersAttacker'), and until when (game seconds) it counts for more

foeUntil ​

ts
foeUntil?: number;

Until when (game seconds) the last who hit the master counts for more

follow ​

ts
follow?: boolean;

Walks with its master, within 2 cells, when it has no target (an idle summon)