diff --git a/changelog.txt b/changelog.txt index 4b3c432..6beec01 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ +v1.12.7: +- (Classic) Fixed fallout from disabling GCD module (errors in castbar). + v1.12.6: - (Classic) Disabled Combo modules for non-Rogues/-Druids. They were sometimes showing for other class abilities for some reason. diff --git a/modules/CastBar.lua b/modules/CastBar.lua index d396a9d..d7dedf8 100644 --- a/modules/CastBar.lua +++ b/modules/CastBar.lua @@ -439,7 +439,9 @@ function CastBar.prototype:SpellCastStart(event, unit, castGuid, spellId) end self:UpdateLagBar() - self.nextLagUpdate = GetTime() + (select(2, GetSpellCooldown(IceHUD.GlobalCoolDown:GetSpellId())) / 2) + if IceHUD.GlobalCoolDown then + self.nextLagUpdate = GetTime() + (select(2, GetSpellCooldown(IceHUD.GlobalCoolDown:GetSpellId())) / 2) + end end @@ -464,7 +466,9 @@ function CastBar.prototype:SpellCastSucceeded(event, unit, castGuid, spellId) end self:UpdateLagBar() - self.nextLagUpdate = GetTime() + (select(2, GetSpellCooldown(IceHUD.GlobalCoolDown:GetSpellId())) / 2) + if IceHUD.GlobalCoolDown then + self.nextLagUpdate = GetTime() + (select(2, GetSpellCooldown(IceHUD.GlobalCoolDown:GetSpellId())) / 2) + end end