Get Spell Charges
Game Version Wrapper
Wrapper around C_Spell.GetSpellCharges that returns the older tuple shape.
NamespaceEModuleCoreLifecyclewrapper
E:GetSpellCharges(spellID)Wrapper around C_Spell.GetSpellCharges that returns the older tuple shape.
Parameters
Section titled “Parameters”spellID: Numeric spell id.
Returns
Section titled “Returns”currentCharges, maxCharges, cooldownStartTime, cooldownDuration, chargeModRate.
Example
Section titled “Example”local charges, maxCharges = E:GetSpellCharges(120)Use for addon code that supports multiple WoW client API generations.
Source: ElvUI/Game/Shared/General/API.lua:504