Returns information on the number of charges on a spell in the spellbook


See also Spell functions.

Signature:

charges, maxCharges, start, duration = GetSpellCharges("name") or GetSpellCharges(id)

Arguments:

  • name - Name of a spell (string)
  • id - Numeric ID of a spell (number, spellID)

Returns:

  • charges - Current amount of charges left for a spell (number)
  • maxCharges - The total amount of charges given for a spell (number)
  • start - The value of GetTime() at the moment the cooldown began. NB: This value never resets! (number)
  • duration - The length of the cooldown in seconds (number)