AbilityInfo beta
Interface of @v12-engine/engine
export interface AbilityInfoAn ability of the player's own unit as the owner's screen is told of it: level, cooldown, charges and autocast
Members
autocast
autocast: boolean;Whether the ability is set to cast by itself
charges
charges?: number;Uses left, of an ability with charges, while it holds fewer than it can (all of them when left out: chargesLeft)
cooldown
cooldown: number;Seconds until it can be used again
data
data?: Record<string, unknown>;The game's own state of the ability (AbilityState.data), where it has any
decided
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
id: string;The ability's id
level
level: number;The ability's level, from 1
recast
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
refill?: number;Seconds until the next use is back, while it holds fewer than it can