mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
Our DLL adds the modern HookScript widget method; older pfUI forks branch on `if button.HookScript` and take a modern path they weren't written for on pfActionBar buttons, breaking them. While the actionbar module builds, wrap CreateFrame to shadow HookScript with a falsy instance field (nil doesn't work — it's a metatable method, so the lookup falls through) so those forks use their vanilla SetScript path. The maintained "brues" fork is detected via the TOC X-Website tag and left alone; the wrapper is removed once the actionbar module finishes loading.