Skip to content

Commit

Permalink
core: Fix contextual ping on suffix units (#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
p3lim authored Sep 20, 2023
1 parent a33780b commit 8739982
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions ouf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,17 @@ local function initObject(unit, style, styleFunc, header, ...)
func(object)
end

--[[ frame.IsPingable
This boolean can be set to false to disable the frame from being pingable. Enabled by default.
--]]
--[[ Override: frame:GetContextualPingType()
Used to define which contextual ping is used for the frame.
By default this wraps `C_Ping.GetContextualPingTypeForUnit(UnitGUID(frame.unit))`.
--]]
object:SetAttribute('ping-receiver', true)
Mixin(object, PingableType_UnitFrameMixin)

-- Make Clique kinda happy
if(not object.isNamePlate) then
_G.ClickCastFrames = _G.ClickCastFrames or {}
Expand All @@ -361,17 +372,6 @@ local function walkObject(object, unit)

local header = parent:GetAttribute('oUF-headerType') and parent

--[[ frame.IsPingable
This boolean can be set to false to disable the frame from being pingable. Enabled by default.
--]]
--[[ Override: frame:GetContextualPingType()
Used to define which contextual ping is used for the frame.
By default this wraps `C_Ping.GetContextualPingTypeForUnit(UnitGUID(frame.unit))`.
--]]
object:SetAttribute('ping-receiver', true)
Mixin(object, PingableType_UnitFrameMixin)

-- Check if we should leave the main frame blank.
if(object:GetAttribute('oUF-onlyProcessChildren')) then
object.hasChildren = true
Expand Down

0 comments on commit 8739982

Please sign in to comment.