mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- added support for custom bars to track by substring instead of an exact match
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user