Skip to content

Commit

Permalink
Fixed GetSpellCharges on Retail
Browse files Browse the repository at this point in the history
  • Loading branch information
d87 committed Sep 23, 2024
1 parent 2d82026 commit 5a231f0
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,18 @@ local GetSpecialization = APILevel <= 4 and function() return 1 end or _G.GetSpe

local DRUID_CAT_FORM = DRUID_CAT_FORM or CAT_FORM or 1
local DRUID_BEAR_FORM = DRUID_BEAR_FORM or BEAR_FORM or 5
local GetSpellCooldown = GetSpellCooldown or C_Spell.GetSpellCooldown
local GetSpellCharges = GetSpellCharges or C_Spell.GetSpellCharges
local RetailGetSpellCooldown = function(...)
local C_Spell_GetSpellCooldown = C_Spell.GetSpellCooldown
local info = C_Spell_GetSpellCooldown(...)
return info.startTime, info.duration, info.enabled, info.modRate
end
local RetailGetSpellCharges = function(...)
local C_Spell_GetSpellCharges = C_Spell.GetSpellCharges
local info = C_Spell_GetSpellCharges(...)
return info.currentCharges, info.maxCharges, info.cooldownStartTime, info.cooldownDuration
end
local GetSpellCooldown = GetSpellCooldown or RetailGetSpellCooldown
local GetSpellCharges = GetSpellCharges or RetailGetSpellCharges

ns.DRUID_BEAR_FORM = DRUID_BEAR_FORM
ns.DRUID_CAT_FORM = DRUID_CAT_FORM
Expand Down

0 comments on commit 5a231f0

Please sign in to comment.