Skip to content

AbilityGrant beta ​

Interface of @v12-engine/engine

ts
export interface AbilityGrant

An ability a unit was given for a while (grantAbility, swapAbility, a stolen one): seconds left, casts left (uses), and what it took the place of (replaced), back as it is gone

Members ​

ability ​

ts
ability: string;

The ability given

left ​

ts
left?: number;

Seconds until it is gone, where it is for a time

replaced ​

ts
replaced?: AbilityState;

The ability it took the place of, as it was (its cooldown running on meanwhile): back in its place as this goes

uses ​

ts
uses?: number;

Casts of it before it is gone, where it is for so many