C_SpellBook. GetSpellBookItemCharges
functionguessedavailable in: camelot
Returns a table of info about the charges of a charge-accumulating SpellBookItem; May return nil if item is not found or is not charge-based
function C_SpellBook.GetSpellBookItemCharges( spellBookItemSlotIndex: number, spellBookItemSpellBank: SpellBookSpellBank): SpellChargeInfo?Parameters
| name | type |
|---|---|
spellBookItemSlotIndex | number |
spellBookItemSpellBank | SpellBookSpellBank |
Returns
chargeInfo · SpellChargeInfo?
| field | type | description |
|---|---|---|
currentCharges | number | Number of charges currently available |
maxCharges | number | Max number of charges that can be accumulated |
cooldownStartTime | number | If charge cooldown is active, time at which the most recent charge cooldown began; 0 if cooldown is not active |
cooldownDuration | number | Cooldown duration in seconds required to generate a charge |
chargeModRate | number | Rate at which cooldown UI should update |
isActive | boolean | False 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
guessedThe answer is worked out from Blizzard's documentation, its UI code and the function's name, and not checked against the client. what the statuses mean
Restrictions
sources
Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (SpellBook system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.