From 70112e8a042e34738530fa5cbbe9e9398b28a8fb Mon Sep 17 00:00:00 2001 From: pepopo978 Date: Sat, 28 Feb 2026 12:50:56 -0800 Subject: [PATCH] fix initial PlayerModCastingTime detection --- modules/player.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/player.lua b/modules/player.lua index bc581b5d..eb75d706 100644 --- a/modules/player.lua +++ b/modules/player.lua @@ -56,12 +56,11 @@ pfUI:RegisterModule("player", "vanilla:tbc", function () end end - UpdatePlayerModCastingTime() - local talentFrame = CreateFrame("Frame") + talentFrame:RegisterEvent("PLAYER_ENTERING_WORLD") talentFrame:RegisterEvent("LEARNED_SPELL_IN_TAB") talentFrame:SetScript("OnEvent", function() - -- Debounce LEARNED_SPELL_IN_TAB by delaying 1s + -- Delay 1s for both PLAYER_ENTERING_WORLD and LEARNED_SPELL_IN_TAB local checkAt = GetTime() + 1 talentFrame:SetScript("OnUpdate", function() if GetTime() >= checkAt then