API to get the cooldown of an uncasted spell

Like when you look at spell book and see that Spell XYZ does this and that and has a 1.5minutes CD.

Its not GetSpellCooldown (that only works if the spell was cast and is currently on cooldown) and its not GetSpellInfo or GetSpellDescription either. Any idea of what it might be?

1 Like

Rats
it doesn’t work for spell with charges. If SpellX has 2 charges and a 20 sec recharge rate, the cd duration returned by GetSpellBaseCooldown is 0.

Any idea what the equivalent api would be for that?

Thanks

1 Like

currentCharges, maxCharges, cooldownStart, cooldownDuration, chargeModRate = GetSpellCharges(spellId or "spellName")

GetSpellCharges gives the actual cooldown duration, even at max charges.

2 Likes

And now we are good.

Thanks

1 Like