diff --git a/ShadowedUnitFrames/modules/totems.lua b/ShadowedUnitFrames/modules/totems.lua index a1c7cb2..d2ab495 100644 --- a/ShadowedUnitFrames/modules/totems.lua +++ b/ShadowedUnitFrames/modules/totems.lua @@ -37,7 +37,9 @@ function Totems:OnEnable(frame) for id=1, MAX_TOTEMS do local totem = ShadowUF.Units:CreateBar(frame) - totem:SetFrameLevel(1) + -- Sit above the parent unit button (RegisterForClicks "AnyUp" + frame.menu) + -- so right-clicks land on the totem strip instead of opening the unit popup. + totem:SetFrameLevel((frame.topFrameLevel or 5) + 5) totem:SetMinMaxValues(0, 1) totem:SetValue(0) totem.id = MAX_TOTEMS == 1 and 1 or TOTEM_PRIORITIES[id]