mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
ModernSpellBook's MSB_Spellbook.lua re-hooks its "show all ranks" checkbox by calling HookScript(frame, "OnClick", handler) as a GLOBAL. That global never existed on any client -- HookScript has always been the widget method frame:HookScript, which our DLL provides -- so the call errors with "attempt to call global 'HookScript' (a nil value)". Define the global in AddOnCompat, forwarding to the method, gated on the addon being present so the global namespace stays clean otherwise.