diff --git a/changelog.md b/changelog.md index 8671ab4..28eb440 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,9 @@ # Changelog +v1.14.2: + +- Fix CC and Invuln modules not showing immediately when they should. + v1.14.1: - Fix Hide Party feature on pre-10.0 clients. diff --git a/modules/TargetCC.lua b/modules/TargetCC.lua index ce5b8f1..35a0656 100644 --- a/modules/TargetCC.lua +++ b/modules/TargetCC.lua @@ -375,11 +375,12 @@ end function TargetCC.prototype:MyOnUpdate() TargetCC.super.prototype.MyOnUpdate(self) - self:UpdateTargetDebuffs(nil, self.unit, true) + self:UpdateTargetDebuffs("internal", self.unit) end -function TargetCC.prototype:UpdateTargetDebuffs(event, unit, isUpdate) +function TargetCC.prototype:UpdateTargetDebuffs(event, unit) local name, duration, remaining + local isUpdate = event == "internal" if not isUpdate or not self.lastUpdateTime then self.debuffName, self.debuffDuration, self.debuffRemaining = self:GetMaxDebuffDuration(self.unit, self.debuffList) diff --git a/modules/TargetInvuln.lua b/modules/TargetInvuln.lua index 8ca6953..9317934 100644 --- a/modules/TargetInvuln.lua +++ b/modules/TargetInvuln.lua @@ -191,11 +191,12 @@ end function TargetInvuln.prototype:MyOnUpdate() TargetInvuln.super.prototype.MyOnUpdate(self) - self:UpdateTargetBuffs(nil, self.unit, true) + self:UpdateTargetBuffs("internal", self.unit) end -function TargetInvuln.prototype:UpdateTargetBuffs(event, unit, isUpdate) +function TargetInvuln.prototype:UpdateTargetBuffs(event, unit) local name, duration, remaining + local isUpdate = event == "internal" if not isUpdate or not self.lastUpdateTime then self.buffName, self.buffDuration, self.buffRemaining = self:GetMaxbuffDuration(self.unit, self.buffList) diff --git a/this_version.md b/this_version.md index a9b9035..6620b92 100644 --- a/this_version.md +++ b/this_version.md @@ -1,5 +1,9 @@ # Changelog +v1.14.2: + +- Fix CC and Invuln modules not showing immediately when they should. + v1.14.1: - Fix Hide Party feature on pre-10.0 clients.