dev7355608 / BlizzardRaidFramesFix

This addon prevents the Blizzard raid frames from breaking when players join or leave during combat in WoW
https://www.curseforge.com/wow/addons/blizzardraidframesfix
MIT License
2 stars 4 forks source link

Fix lua error in 9.2.5 #5

Closed SweepyBoop closed 2 years ago

SweepyBoop commented 2 years ago

With 9.2.5, UnitPopupMenus[menu] is no longer a list of buttons. It contains an object of Button class derived from UnitPopupTopLevelMenuMixin, and buttons are returned by override function GetMenuButtons.

This fix creates a copy of the original menu but removes SET_FOCUS, CLEAR_FOCUS, PVP_REPORT_AFK buttons in the GetMenuButtons override.

Verified no more lua errors pop up when right clicking the raid frames

dev7355608 commented 2 years ago

Thanks!