- made custom bars and counters not be case-sensitive in their spells-to-be-tracked

This commit is contained in:
Parnic
2009-07-08 02:05:50 +00:00
parent 4fd6ad752b
commit b9c9182c27
2 changed files with 2 additions and 2 deletions

View File

@ -818,7 +818,7 @@ function IceHUD:GetAuraCount(auraType, unit, ability, onlyMine, matchByName)
break break
end 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 return applications
end end
end end

View File

@ -276,7 +276,7 @@ function IceCustomBar.prototype:GetAuraDuration(unitName, buffName)
local isMine = unitCaster == "player" local isMine = unitCaster == "player"
while buff do 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 if endTime and not remaining then
remaining = endTime - GetTime() remaining = endTime - GetTime()
end end