Skip to content

Commit

Permalink
Fixed an incompatibility with Threat Plates where BigDebuffs' icons w…
Browse files Browse the repository at this point in the history
…here not shown (because of a side-effect with other addons). You also need to update Threat Plates for the bugfix to take effect. (#715)
  • Loading branch information
Backupiseasy authored May 5, 2024
1 parent 5493872 commit 5a070c2
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions BigDebuffs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -528,17 +528,13 @@ local GetNameplateAnchor = {
end
end,
ThreatPlates = function(frame)
local tp_frame = frame.TPFrame
if tp_frame then
local visual = tp_frame.visual
-- healthbar and name are always defined, so checks are not really needed here.
if visual.healthbar and visual.healthbar:IsShown() then
return visual.healthbar, tp_frame
elseif visual.name and visual.name:IsShown() then
return visual.name, tp_frame
else
return tp_frame, tp_frame
end
if frame.TPFrame.GetAnchor then
return frame.TPFrame:GetAnchor()
elseif frame.UnitFrame:IsShown() then
return frame.UnitFrame, frame.UnitFrame
else
-- Fallback solution if TP was not yet updated and GetAnchor is not available.
return frame.TPFrame, frame.TPFrame
end
end,
TidyPlates = function(frame)
Expand Down Expand Up @@ -597,7 +593,7 @@ local nameplatesAnchors = {
[6] = {
used = function(frame)
-- IsAddOnLoaded("TidyPlates_ThreatPlates") should be better
return TidyPlatesThreat ~= nil and frame.TPFrame:IsShown()
return TidyPlatesThreat ~= nil
end,
func = GetNameplateAnchor.ThreatPlates,
},
Expand Down

0 comments on commit 5a070c2

Please sign in to comment.