Skip to content

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.

spellID: Numeric spell id.

currentCharges, maxCharges, cooldownStartTime, cooldownDuration, chargeModRate.

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