C_Spell .GetSpellCharges
Jump to navigation
Jump to search
![]() ![]() ![]() ![]() |
C_Spell.GetSpellCharges |
![]() |
+ 11.0.2 |
![]() ![]() ![]() ![]() |
C_SpellBook.GetSpellBookItemCharges |
![]() |
+ 11.0.2 |
![]() ![]() |
GetSpellCharges |
![]() ![]() ![]() |
+ 5.0.4, - 11.0.2 |
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
chargeInfo = C_Spell.GetSpellCharges(spellIdentifier)
Arguments
- spellIdentifier
- number|string : SpellIdentifier
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 |