Skip to content

Commit

Permalink
now waits for casts to be complete before opening pouches
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Cobb committed Aug 5, 2024
1 parent 4fd9cd1 commit ff9da9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OpenThosePouches.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ local function OpenNextPouch()
for container = BACKPACK_CONTAINER, NUM_BAG_SLOTS do
for slot = 1, C_Container.GetContainerNumSlots(container) do
if IsPouch(container, slot) == true then
if isVendorDialogOpen_lock == false then
local isNotCasting = UnitCastingInfo("player") == nil
if isVendorDialogOpen_lock == false and isNotCasting and not InCombatLockdown() then
C_Container.UseContainerItem(container, slot)
end
C_Timer.After(delayBetweenSearches, OpenNextPouch)
Expand Down

0 comments on commit ff9da9c

Please sign in to comment.