From b9c9182c278d18fe29365348560a657c9370e43d Mon Sep 17 00:00:00 2001 From: Parnic Date: Wed, 8 Jul 2009 02:05:50 +0000 Subject: [PATCH] - made custom bars and counters not be case-sensitive in their spells-to-be-tracked --- IceHUD.lua | 2 +- modules/CustomBar.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/IceHUD.lua b/IceHUD.lua index cb93552..36d8bd3 100644 --- a/IceHUD.lua +++ b/IceHUD.lua @@ -818,7 +818,7 @@ function IceHUD:GetAuraCount(auraType, unit, ability, onlyMine, matchByName) break end - if (not matchByName and string.match(texture, ability)) or (matchByName and string.match(name, ability)) then + if (not matchByName and string.match(texture:upper(), ability:upper())) or (matchByName and string.match(name:upper(), ability:upper())) then return applications end end diff --git a/modules/CustomBar.lua b/modules/CustomBar.lua index 311bd61..7c138d3 100644 --- a/modules/CustomBar.lua +++ b/modules/CustomBar.lua @@ -276,7 +276,7 @@ function IceCustomBar.prototype:GetAuraDuration(unitName, buffName) local isMine = unitCaster == "player" while buff do - if (buff == buffName and (not self.moduleSettings.trackOnlyMine or isMine)) then + if (buff:upper() == buffName:upper() and (not self.moduleSettings.trackOnlyMine or isMine)) then if endTime and not remaining then remaining = endTime - GetTime() end