UnitFrames/Auras: Fix aura filters and nameplate buff text
This commit is contained in:
@@ -167,8 +167,8 @@ end
|
||||
|
||||
function E:CreateCooldownTimer(parent, displayParent)
|
||||
local timer = CreateFrame("Frame", parent:GetName() and parent:GetName().."Timer" or nil, displayParent)
|
||||
parent:HookScript("OnHide", function() timer:Hide() end)
|
||||
parent:HookScript("OnShow", function() timer:Show() end)
|
||||
parent:HookScript("OnHide", function(self) if self:GetParent().isNamePlate then return end timer:Hide() end)
|
||||
parent:HookScript("OnShow", function(self) timer:Show() end)
|
||||
timer:SetFrameLevel(parent:GetFrameLevel() + 1)
|
||||
timer:Hide()
|
||||
timer:SetAllPoints(parent)
|
||||
|
||||
@@ -218,6 +218,8 @@ function UF:CheckFilter(name, caster, spellID, isFriend, isPlayer, isUnit, allow
|
||||
return true, spell.priority -- this is the only difference from auarbars code
|
||||
elseif filterType and (filterType == "Blacklist") and (spell and spell.enable) then
|
||||
return false
|
||||
elseif allowDuration then
|
||||
return true
|
||||
end
|
||||
elseif filterName == "Personal" and isPlayer and allowDuration then
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user