Skip to content

Commit

Permalink
Cooldown charge implementation was causing lua errors when viewing/pe…
Browse files Browse the repository at this point in the history
…rforming cooldowns (#313)
  • Loading branch information
Williwams authored Jul 22, 2024
1 parent 6a957ef commit b62d950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/CooldownData.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function CraftSim.CooldownData:Update()
local elapsedTimeSinceCooldownStart = (self.maxCooldown - currentCooldown)
self.startTime = math.max(GetServerTime() - elapsedTimeSinceCooldownStart, 0)
else
self.cooldownPerCharge = select(4, C_Spell.GetSpellCharges(self.recipeID))
self.cooldownPerCharge = C_Spell.GetSpellCharges(self.recipeID)["cooldownDuration"]
if self.currentCharges < self.maxCharges then
local elapsedTimeSinceCooldownStart = (self.cooldownPerCharge - currentCooldown)
self.startTimeCurrentCharge = GetServerTime() - elapsedTimeSinceCooldownStart
Expand Down

0 comments on commit b62d950

Please sign in to comment.