- fixed buff/debuff filter in the TargetInfo module to properly filter on hostile units as well as friendlies. not sure why this was setup to ignore the filter for hostiles in the first place, but it was just creating confusion

This commit is contained in:
Parnic
2008-11-26 05:15:28 +00:00
parent a569320504
commit 98d8dfe438

View File

@ -747,7 +747,7 @@ function TargetInfo.prototype:UpdateBuffs()
local buffName, buffRank, buffTexture, buffApplications, buffType, buffDuration, buffTimeLeft, isFromMe;
if IceHUD.WowVer >= 30000 then
buffName, buffRank, buffTexture, buffApplications, buffType, buffDuration, buffTimeLeft, isFromMe
= UnitAura("target", i, "HELPFUL" .. (filter and not hostile and "|PLAYER" or "")) --UnitBuff("target", i, filter and not hostile)
= UnitAura("target", i, "HELPFUL" .. (filter and "|PLAYER" or "")) --UnitBuff("target", i, filter and not hostile)
else
buffName, buffRank, buffTexture, buffApplications, buffDuration, buffTimeLeft
= UnitBuff("target", i, filter and not hostile)
@ -797,7 +797,7 @@ function TargetInfo.prototype:UpdateBuffs()
for i = 1, IceCore.BuffLimit do
local buffName, buffRank, buffTexture, buffApplications, debuffDispelType,
debuffDuration, debuffTimeLeft, isFromMe = UnitAura("target", i, "HARMFUL" .. (filter and not hostile and "|PLAYER" or "")) --UnitDebuff("target", i, filter and not hostile)
debuffDuration, debuffTimeLeft, isFromMe = UnitAura("target", i, "HARMFUL" .. (filter and "|PLAYER" or "")) --UnitDebuff("target", i, filter and not hostile)
if (buffTexture and (not hostile or not filter or (filter and debuffDuration))) then