Skip to content

chargesLeft beta ​

Function of @v12-engine/engine

ts
export declare function chargesLeft(ability: AbilityDef, state: {
    level: number;
    charges?: number;
}): number | undefined;

How many uses an ability with charges has left (AbilityDef.charges), at its level: what its state says, or all it holds when that says nothing. Undefined for an ability without charges