I’ve made a simple addon on addon.bool.no and the LUA file is just two lines of code:
BUFFS_PER_ROW = 5
DEBUFFS_PER_ROW = 5
This part of the addon works fine, limits my buffs and debuffs to 5 per row before wrapping to another row.
The issue is that at times my Target of Target frame gets hidden and stays hidden until I change targets.
This is the error from BugSack:
1x [ADDON_ACTION_BLOCKED] AddOn ‘Buffs per row’ tried to call the protected function ‘PetFrame:Hide()’.
[string “@!BugGrabber/BugGrabber.lua”]:481: in function <!BugGrabber/BugGrabber.lua:481>
[string “=[C]”]: in function `Hide’
[string “@FrameXML/PetFrame_Shared.lua”]:68: in function `PetFrame_Update’
[string “@FrameXML/PetFrame_Shared.lua”]:95: in function `OnEvent’
[string “@FrameXML/UnitFrame.lua”]:762: in function <FrameXML/UnitFrame.lua:760>
Locals:
_ = Frame {
RegisterEvent = defined @!BugGrabber/BugGrabber.lua:487
0 =
UnregisterEvent = defined @!BugGrabber/BugGrabber.lua:487
SetScript = defined @!BugGrabber/BugGrabber.lua:487
}
event = “ADDON_ACTION_BLOCKED”
events =
{ADDON_ACTION_BLOCKED = defined @!BugGrabber/BugGrabber.lua:553
ADDON_ACTION_FORBIDDEN = defined @!BugGrabber/BugGrabber.lua:553
PLAYER_LOGIN = defined @!BugGrabber/BugGrabber.lua:547
LUA_WARNING = defined @!BugGrabber/BugGrabber.lua:562
ADDON_LOADED = defined @!BugGrabber/BugGrabber.lua:507
}
Is there any way that I could prevent the Target of Target frame from disappearing? How does it even relate to my character’s buffs and debuffs which are shown in a different frame?