Skip to content

AbilityInfo beta ​

Interface of @v12-engine/engine

ts
export interface AbilityInfo

An ability of the player's own unit as the owner's screen is told of it: level, cooldown, charges and autocast

Members ​

autocast ​

ts
autocast: boolean;

Whether the ability is set to cast by itself

charges ​

ts
charges?: number;

Uses left, of an ability with charges, while it holds fewer than it can (all of them when left out: chargesLeft)

cooldown ​

ts
cooldown: number;

Seconds until it can be used again

data ​

ts
data?: Record<string, unknown>;

The game's own state of the ability (AbilityState.data), where it has any

decided ​

ts
decided?: Message | null;

What the game's canCast hook decided, where it is not what the declared costs say: a reason it cannot be used now, or null for one it can be used for all that ("free while Clearcasting"). Left out when there is nothing to add

id ​

ts
id: string;

The ability's id

level ​

ts
level: number;

The ability's level, from 1

recast ​

ts
recast?: {
        left: number;
        total: number;
        count: number;
    };

Its window to be cast again, while it is open (AbilityDef.recast): seconds left of total, and how many recasts are left in it (count)

refill ​

ts
refill?: number;

Seconds until the next use is back, while it holds fewer than it can