From 7dfc05aa91c4f5ebd94d1cba4e3c82ac0b0061a6 Mon Sep 17 00:00:00 2001 From: Parnic Date: Thu, 26 Sep 2019 15:38:42 -0500 Subject: [PATCH] Fixed fallout from disabling GCD module Fixes wowace ticket 253 --- changelog.txt | 3 +++ modules/CastBar.lua | 8 ++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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