Thread Tools Display Modes
06-27-15, 08:40 AM   #1
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Action charges

Since 6.2.0, GetActionCooldown no longer gives information about Action charges:

local cdstart, cdduration, enabled, charges, maxCharges = GetActionCooldown(action)

local cdstart, cdduration, enabled = GetActionCooldown(action)

The only way to get info about Action Charges is:

Lua Code:
  1. local charges, maxCharges, chargeStart, chargeDuration = GetActionCharges(action)

Last edited by Resike : 06-27-15 at 08:43 AM.
  Reply With Quote
06-28-15, 06:24 AM   #2
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
This also affected CooldownFrame_SetTimer, the function no longer handles charges.
Charges are now handled by the new functions StartChargeCooldown and EndChargeCooldown, both found in ActionButton.lua
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Action charges


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off