mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 22:51:53 -05:00
Fix CC and Invuln not showing immediately
This is the same fix as was applied to RollTheBones in commit 46883e355b
but I failed to audit the rest of the mod for places where this was possible. This one was reported over on the Curse addon page comments.
This commit is contained in:
@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
v1.14.2:
|
||||||
|
|
||||||
|
- Fix CC and Invuln modules not showing immediately when they should.
|
||||||
|
|
||||||
v1.14.1:
|
v1.14.1:
|
||||||
|
|
||||||
- Fix Hide Party feature on pre-10.0 clients.
|
- Fix Hide Party feature on pre-10.0 clients.
|
||||||
|
@ -375,11 +375,12 @@ end
|
|||||||
|
|
||||||
function TargetCC.prototype:MyOnUpdate()
|
function TargetCC.prototype:MyOnUpdate()
|
||||||
TargetCC.super.prototype.MyOnUpdate(self)
|
TargetCC.super.prototype.MyOnUpdate(self)
|
||||||
self:UpdateTargetDebuffs(nil, self.unit, true)
|
self:UpdateTargetDebuffs("internal", self.unit)
|
||||||
end
|
end
|
||||||
|
|
||||||
function TargetCC.prototype:UpdateTargetDebuffs(event, unit, isUpdate)
|
function TargetCC.prototype:UpdateTargetDebuffs(event, unit)
|
||||||
local name, duration, remaining
|
local name, duration, remaining
|
||||||
|
local isUpdate = event == "internal"
|
||||||
|
|
||||||
if not isUpdate or not self.lastUpdateTime then
|
if not isUpdate or not self.lastUpdateTime then
|
||||||
self.debuffName, self.debuffDuration, self.debuffRemaining = self:GetMaxDebuffDuration(self.unit, self.debuffList)
|
self.debuffName, self.debuffDuration, self.debuffRemaining = self:GetMaxDebuffDuration(self.unit, self.debuffList)
|
||||||
|
@ -191,11 +191,12 @@ end
|
|||||||
|
|
||||||
function TargetInvuln.prototype:MyOnUpdate()
|
function TargetInvuln.prototype:MyOnUpdate()
|
||||||
TargetInvuln.super.prototype.MyOnUpdate(self)
|
TargetInvuln.super.prototype.MyOnUpdate(self)
|
||||||
self:UpdateTargetBuffs(nil, self.unit, true)
|
self:UpdateTargetBuffs("internal", self.unit)
|
||||||
end
|
end
|
||||||
|
|
||||||
function TargetInvuln.prototype:UpdateTargetBuffs(event, unit, isUpdate)
|
function TargetInvuln.prototype:UpdateTargetBuffs(event, unit)
|
||||||
local name, duration, remaining
|
local name, duration, remaining
|
||||||
|
local isUpdate = event == "internal"
|
||||||
|
|
||||||
if not isUpdate or not self.lastUpdateTime then
|
if not isUpdate or not self.lastUpdateTime then
|
||||||
self.buffName, self.buffDuration, self.buffRemaining = self:GetMaxbuffDuration(self.unit, self.buffList)
|
self.buffName, self.buffDuration, self.buffRemaining = self:GetMaxbuffDuration(self.unit, self.buffList)
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
v1.14.2:
|
||||||
|
|
||||||
|
- Fix CC and Invuln modules not showing immediately when they should.
|
||||||
|
|
||||||
v1.14.1:
|
v1.14.1:
|
||||||
|
|
||||||
- Fix Hide Party feature on pre-10.0 clients.
|
- Fix Hide Party feature on pre-10.0 clients.
|
||||||
|
Reference in New Issue
Block a user