From 1bd7976c5aae4fb86809c8e18ce9fa45810b46f1 Mon Sep 17 00:00:00 2001 From: Parnic Date: Sun, 27 Sep 2009 22:10:37 +0000 Subject: [PATCH] - added support for custom bars to track by substring instead of an exact match --- modules/CustomBar.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/CustomBar.lua b/modules/CustomBar.lua index 9676f38..0162091 100644 --- a/modules/CustomBar.lua +++ b/modules/CustomBar.lua @@ -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