Skip to content

Commit

Permalink
move this down
Browse files Browse the repository at this point in the history
  • Loading branch information
kodewdle committed Oct 27, 2024
1 parent 9f82c21 commit 5f699f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ElvUI/Core/Modules/Nameplates/StyleFilter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1032,12 +1032,12 @@ function NP:StyleFilterConditionCheck(frame, filter, trigger)
end

do
local instanceName, instanceType, difficultyID, instanceID, _
local which, location = trigger.instanceType, trigger.location
local activeType = which and (which.none or which.scenario or which.party or which.raid or which.arena or which.pvp)
local activeID = location and location.instanceIDEnabled

-- Instance Type
local instanceName, instanceType, difficultyID, instanceID, _
if activeType or activeID then
instanceName, instanceType, difficultyID, _, _, _, _, instanceID = GetInstanceInfo()
end
Expand All @@ -1057,7 +1057,7 @@ function NP:StyleFilterConditionCheck(frame, filter, trigger)
end

-- Location
if activeID or location and (location.mapIDEnabled or location.zoneNamesEnabled or location.subZoneNamesEnabled) then
if activeID or (location and (location.mapIDEnabled or location.zoneNamesEnabled or location.subZoneNamesEnabled)) then
if activeID and next(location.instanceIDs) then
if (instanceID and location.instanceIDs[tostring(instanceID)]) or location.instanceIDs[instanceName] then passed = true else return end
end
Expand Down

0 comments on commit 5f699f7

Please sign in to comment.