v0.13.8

C_Spell.GetSpellCharges

functionimplementedavailable in: camelot

Returns a table of info about the charges of a charge-accumulating spell; May return nil if spell is not found or is not charge-based

signaturewowlua
function C_Spell.GetSpellCharges(    spellIdentifier: SpellIdentifier): SpellChargeInfo?

Parameters

nametype
spellIdentifierSpellIdentifier

Returns

chargeInfo · SpellChargeInfo?

SpellChargeInfo
fieldtypedescription
currentChargesnumberNumber of charges currently available
maxChargesnumberMax number of charges that can be accumulated
cooldownStartTimenumberIf charge cooldown is active, time at which the most recent charge cooldown began; 0 if cooldown is not active
cooldownDurationnumberCooldown duration in seconds required to generate a charge
chargeModRatenumberRate at which cooldown UI should update
isActivebooleanFalse if recharging is not active (ex: at maximum available charges, start time or duration are zero); True otherwise

Blizzard's documentation says it may return nothing.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

Restrictions

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Spell system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.