mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- probable fix for debuffs appearing as "own buff size" when they shouldn't have
This commit is contained in:
@ -747,7 +747,7 @@ function TargetInfo.prototype:UpdateBuffs()
|
|||||||
local buffName, buffRank, buffTexture, buffApplications, buffType, buffDuration, buffTimeLeft, isFromMe;
|
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, isFromMe
|
buffName, buffRank, buffTexture, buffApplications, buffType, buffDuration, buffTimeLeft, isFromMe
|
||||||
= UnitBuff("target", i, filter and not hostile)
|
= UnitAura("target", i, "HELPFUL" .. (filter and not hostile and "|PLAYER" or "")) --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)
|
||||||
@ -797,7 +797,7 @@ function TargetInfo.prototype:UpdateBuffs()
|
|||||||
|
|
||||||
for i = 1, IceCore.BuffLimit do
|
for i = 1, IceCore.BuffLimit do
|
||||||
local buffName, buffRank, buffTexture, buffApplications, debuffDispelType,
|
local buffName, buffRank, buffTexture, buffApplications, debuffDispelType,
|
||||||
debuffDuration, debuffTimeLeft = UnitDebuff("target", i, filter and not hostile)
|
debuffDuration, debuffTimeLeft, isFromMe = UnitAura("target", i, "HARMFUL" .. (filter and not hostile and "|PLAYER" or "")) --UnitDebuff("target", i, filter and not hostile)
|
||||||
|
|
||||||
if (buffTexture and (not hostile or not filter or (filter and debuffDuration))) then
|
if (buffTexture and (not hostile or not filter or (filter and debuffDuration))) then
|
||||||
|
|
||||||
@ -817,13 +817,13 @@ function TargetInfo.prototype:UpdateBuffs()
|
|||||||
start = GetTime() - debuffDuration + debuffTimeLeft
|
start = GetTime() - debuffDuration + debuffTimeLeft
|
||||||
end
|
end
|
||||||
self.frame.debuffFrame.buffs[i].cd:SetCooldown(start, debuffDuration)
|
self.frame.debuffFrame.buffs[i].cd:SetCooldown(start, debuffDuration)
|
||||||
self.frame.debuffFrame.buffs[i].fromPlayer = true
|
|
||||||
self.frame.debuffFrame.buffs[i].cd:Show()
|
self.frame.debuffFrame.buffs[i].cd:Show()
|
||||||
else
|
else
|
||||||
self.frame.debuffFrame.buffs[i].fromPlayer = false
|
|
||||||
self.frame.debuffFrame.buffs[i].cd:Hide()
|
self.frame.debuffFrame.buffs[i].cd:Hide()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
self.frame.debuffFrame.buffs[i].fromPlayer = isFromMe
|
||||||
|
|
||||||
self.frame.debuffFrame.buffs[i].icon.texture:SetTexture(buffTexture)
|
self.frame.debuffFrame.buffs[i].icon.texture:SetTexture(buffTexture)
|
||||||
self.frame.debuffFrame.buffs[i].icon.texture:SetTexCoord(zoom, 1-zoom, zoom, 1-zoom)
|
self.frame.debuffFrame.buffs[i].icon.texture:SetTexCoord(zoom, 1-zoom, zoom, 1-zoom)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user