mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 22:51:53 -05:00
- fixed "own buff size" to work properly for buffs you cast on targets instead of buffs they cast on themselves
This commit is contained in:
@ -744,13 +744,15 @@ function TargetInfo.prototype:UpdateBuffs()
|
|||||||
|
|
||||||
|
|
||||||
for i = 1, IceCore.BuffLimit do
|
for i = 1, IceCore.BuffLimit do
|
||||||
local buffName, buffRank, buffTexture, buffApplications, buffType, buffDuration, buffTimeLeft;
|
local buffName, buffRank, buffTexture, buffApplications, buffType, buffDuration, buffTimeLeft, isFromMe;
|
||||||
if IceHUD.WowVer >= 30000 then
|
if IceHUD.WowVer >= 30000 then
|
||||||
buffName, buffRank, buffTexture, buffApplications, buffType, buffDuration, buffTimeLeft
|
buffName, buffRank, buffTexture, buffApplications, buffType, buffDuration, buffTimeLeft, isFromMe
|
||||||
= UnitBuff("target", i, filter and not hostile)
|
= UnitBuff("target", i, filter and not hostile)
|
||||||
else
|
else
|
||||||
buffName, buffRank, buffTexture, buffApplications, buffDuration, buffTimeLeft
|
buffName, buffRank, buffTexture, buffApplications, buffDuration, buffTimeLeft
|
||||||
= UnitBuff("target", i, filter and not hostile)
|
= UnitBuff("target", i, filter and not hostile)
|
||||||
|
|
||||||
|
isFromMe = buffDuration and buffTimeLeft
|
||||||
end
|
end
|
||||||
|
|
||||||
if (buffTexture) then
|
if (buffTexture) then
|
||||||
@ -771,13 +773,13 @@ function TargetInfo.prototype:UpdateBuffs()
|
|||||||
start = GetTime() - buffDuration + buffTimeLeft
|
start = GetTime() - buffDuration + buffTimeLeft
|
||||||
end
|
end
|
||||||
self.frame.buffFrame.buffs[i].cd:SetCooldown(start, buffDuration)
|
self.frame.buffFrame.buffs[i].cd:SetCooldown(start, buffDuration)
|
||||||
self.frame.buffFrame.buffs[i].fromPlayer = true
|
|
||||||
self.frame.buffFrame.buffs[i].cd:Show()
|
self.frame.buffFrame.buffs[i].cd:Show()
|
||||||
else
|
else
|
||||||
self.frame.buffFrame.buffs[i].fromPlayer = false
|
|
||||||
self.frame.buffFrame.buffs[i].cd:Hide()
|
self.frame.buffFrame.buffs[i].cd:Hide()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
self.frame.buffFrame.buffs[i].fromPlayer = isFromMe
|
||||||
|
|
||||||
if (buffApplications and (buffApplications > 1)) then
|
if (buffApplications and (buffApplications > 1)) then
|
||||||
self.frame.buffFrame.buffs[i].icon.stack:SetText(buffApplications)
|
self.frame.buffFrame.buffs[i].icon.stack:SetText(buffApplications)
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user