Skip to content

Commit

Permalink
Fixed in-combat taint. (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cidan authored Aug 18, 2024
1 parent 04d4e6a commit 8064d43
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions core/hooks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,16 @@ end

function addon:CloseSpecialWindows(interactingFrame)
if interactingFrame ~= nil then return end

---@class Async: AceModule
local async = addon:GetModule('Async')

debug:Log('Hooks', 'CloseSpecialWindows')
addon.backpackShouldClose = true
addon.Bags.Bank:Hide()
addon.Bags.Bank:SwitchToBankAndWipe()
async:AfterCombat(function()
addon.Bags.Bank:Hide()
addon.Bags.Bank:SwitchToBankAndWipe()
end)
events:SendMessage('addon/CloseSpecialWindows')
if C_Bank then
C_Bank.CloseBankFrame()
Expand Down

0 comments on commit 8064d43

Please sign in to comment.