Skip to content

Fix: LUA Error on ready check - #2049

Open
svart2521 wants to merge 1 commit into
EllesmereGaming:mainfrom
svart2521:lua-error-on-ready-check
Open

Fix: LUA Error on ready check#2049
svart2521 wants to merge 1 commit into
EllesmereGaming:mainfrom
svart2521:lua-error-on-ready-check

Conversation

@svart2521

Copy link
Copy Markdown
Contributor

Bug: https://discord.com/channels/585577383847788554/1545611936404607056

Issue: A ready check performed while already in combat (e.g. a wipe/repull mid-fight) threw ADDON_ACTION_BLOCKED for EllesmereUIBlizzardSkin trying to call ReadyCheckFrame:SetWidth(). LP.FitReadyCheck runs on every ready-check message text change via a hooksecurefunc on SetText/SetFormattedText, and unconditionally resizes ReadyCheckFrame to fit the message -- but ReadyCheckFrame is a protected frame, and SetWidth on it is combat-blocked like any other protected-frame write.
Fix: FitReadyCheck now bails immediately if InCombatLockdown(), deferred once to PLAYER_REGEN_ENABLED so the popup still gets correctly fit as soon as combat clears instead of staying permanently unfit for that session. A one-shot flag collapses repeat text-hook fires while still in combat into a single retry.

Bug:

Issue: A ready check performed while already in combat (e.g. a wipe/repull mid-fight) threw ADDON_ACTION_BLOCKED for EllesmereUIBlizzardSkin trying to call ReadyCheckFrame:SetWidth(). LP.FitReadyCheck runs on every ready-check message text change via a hooksecurefunc on SetText/SetFormattedText, and unconditionally resizes ReadyCheckFrame to fit the message -- but ReadyCheckFrame is a protected frame, and SetWidth on it is combat-blocked like any other protected-frame write.
Fix: FitReadyCheck now bails immediately if InCombatLockdown(), deferred once to PLAYER_REGEN_ENABLED so the popup still gets correctly fit as soon as combat clears instead of staying permanently unfit for that session. A one-shot flag collapses repeat text-hook fires while still in combat into a single retry.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant