- fixed display of buffs on the player not cast by the player for custom bars

This commit is contained in:
Parnic
2009-04-19 06:06:40 +00:00
parent 0a0a816701
commit 65fe2434d8

View File

@ -226,7 +226,7 @@ function IceCustomBar.prototype:GetAuraDuration(unitName, buffName)
local i = 1
local remaining
local isBuff = self.moduleSettings.buffOrDebuff == "buff" and true or false
local buffFilter = (isBuff and "HELPFUL" or "HARMFUL") .. (unitName == "player" and "|PLAYER" or "")
local buffFilter = (isBuff and "HELPFUL" or "HARMFUL") .. (self.moduleSettings.trackOnlyMine and "|PLAYER" or "")
local buff, rank, texture, count, type, duration, endTime, unitCaster = UnitAura(unitName, i, buffFilter)
local isMine = unitCaster == "player"