mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-17 18:20:49 +00:00
fix initial PlayerModCastingTime detection
This commit is contained in:
+2
-3
@@ -56,12 +56,11 @@ pfUI:RegisterModule("player", "vanilla:tbc", function ()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
UpdatePlayerModCastingTime()
|
|
||||||
|
|
||||||
local talentFrame = CreateFrame("Frame")
|
local talentFrame = CreateFrame("Frame")
|
||||||
|
talentFrame:RegisterEvent("PLAYER_ENTERING_WORLD")
|
||||||
talentFrame:RegisterEvent("LEARNED_SPELL_IN_TAB")
|
talentFrame:RegisterEvent("LEARNED_SPELL_IN_TAB")
|
||||||
talentFrame:SetScript("OnEvent", function()
|
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
|
local checkAt = GetTime() + 1
|
||||||
talentFrame:SetScript("OnUpdate", function()
|
talentFrame:SetScript("OnUpdate", function()
|
||||||
if GetTime() >= checkAt then
|
if GetTime() >= checkAt then
|
||||||
|
|||||||
Reference in New Issue
Block a user