- 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:
Parnic
2008-10-16 15:02:27 +00:00
parent 182976bc39
commit 0dc6b15ed0

View File

@ -744,13 +744,15 @@ function TargetInfo.prototype:UpdateBuffs()
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
buffName, buffRank, buffTexture, buffApplications, buffType, buffDuration, buffTimeLeft
buffName, buffRank, buffTexture, buffApplications, buffType, buffDuration, buffTimeLeft, isFromMe
= UnitBuff("target", i, filter and not hostile)
else
buffName, buffRank, buffTexture, buffApplications, buffDuration, buffTimeLeft
= UnitBuff("target", i, filter and not hostile)
isFromMe = buffDuration and buffTimeLeft
end
if (buffTexture) then
@ -771,13 +773,13 @@ function TargetInfo.prototype:UpdateBuffs()
start = GetTime() - buffDuration + buffTimeLeft
end
self.frame.buffFrame.buffs[i].cd:SetCooldown(start, buffDuration)
self.frame.buffFrame.buffs[i].fromPlayer = true
self.frame.buffFrame.buffs[i].cd:Show()
else
self.frame.buffFrame.buffs[i].fromPlayer = false
self.frame.buffFrame.buffs[i].cd:Hide()
end
self.frame.buffFrame.buffs[i].fromPlayer = isFromMe
if (buffApplications and (buffApplications > 1)) then
self.frame.buffFrame.buffs[i].icon.stack:SetText(buffApplications)
else