Jump to content

Spell Charges


Ohren

Recommended Posts

Working on the new Destruction Warlock fight class, I only wanted Conflagrate to fire if you had 2 charges saved up. Which got me doing some research, after about 15 minutes of finding work arounds, I found a much more simple way.

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

Works perfect, currently haven't ran into any other times I'd want to use this, but it will definitely come in handy again.

Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...