Skip to content

Commit

Permalink
Fix pet battle log
Browse files Browse the repository at this point in the history
  • Loading branch information
ls- committed Nov 10, 2022
1 parent 541af89 commit f3e3b78
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ls_Glass/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -565,11 +565,15 @@ function E:OnEnable()
expectedChatFrames[chatType] = {}
end

expectedChatFrames[chatType][chatTarget] = chatFrame
if chatTarget then
expectedChatFrames[chatType][chatTarget] = chatFrame
else
expectedChatFrames[chatType] = chatFrame
end
end)

hooksecurefunc("FCF_OpenTemporaryWindow", function(chatType, chatTarget)
local chatFrame = expectedChatFrames[chatType] and expectedChatFrames[chatType][chatTarget]
local chatFrame = chatTarget and (expectedChatFrames[chatType] and expectedChatFrames[chatType][chatTarget]) or expectedChatFrames[chatType]
if chatFrame then
local frame = E:HandleChatFrame(chatFrame)
if frame then
Expand Down

0 comments on commit f3e3b78

Please sign in to comment.