- added support for custom bars to track by substring instead of an exact match

This commit is contained in:
Parnic
2009-09-27 22:10:37 +00:00
parent a5b9045830
commit 1bd7976c5a

View File

@ -278,7 +278,7 @@ function IceCustomBar.prototype:GetAuraDuration(unitName, buffName)
local isMine = unitCaster == "player"
while buff do
if (buff:upper() == buffName:upper() and (not self.moduleSettings.trackOnlyMine or isMine)) then
if (string.match(buff:upper(), buffName:upper()) and (not self.moduleSettings.trackOnlyMine or isMine)) then
if endTime and not remaining then
remaining = endTime - GetTime()
end