Here's the simplest code that reproduces this bug:
Code:
<CheckButton name="MUShieldSlam" parent="UIParent" inherits="ActionButtonTemplate">
<Anchors>
<Anchor point="CENTER"/>
</Anchors>
<Attributes>
<Attribute name="action" value="2"/>
</Attributes>
<Scripts>
<OnLoad function="ActionButton_OnLoad"/>
</Scripts>
</CheckButton>
With this code I'm getting the following error whenever any debuff applied:
Code:
8x [ADDON_ACTION_BLOCKED] Аддон 'MyUI' tried to call protected function 'MainMenuBar:SetPoint()'.
!BugGrabber\BugGrabber.lua:519: in function <!BugGrabber\BugGrabber.lua:519>
[C]: in function `SetPoint'
FrameXML\UIParent.lua:2981: in function `UIParentManageFramePositions'
FrameXML\UIParent.lua:2357: in function <FrameXML\UIParent.lua:2344>
[C]: in function `SetAttribute'
FrameXML\UIParent.lua:3153: in function `UIParent_ManageFramePositions'
FrameXML\BuffFrame.lua:332: in function `BuffFrame_UpdateAllBuffAnchors'
FrameXML\BuffFrame.lua:104: in function `BuffFrame_Update'
FrameXML\BuffFrame.lua:49: in function <FrameXML\BuffFrame.lua:45>
Locals:
InCombatSkipped
What am I doing wrong? I tried to understand this stacktrace but I have no idea how it has any relation to my code. I tried to inherit from SecureActionButtonTemplate (I don't really need it, but anyway) and it did not help.