Merge pull request #76 from BanditTech/main

Add AFK mode exclusion for AH open
This commit is contained in:
Andrew
2025-10-09 10:47:46 -07:00
committed by GitHub
+2 -2
View File
@@ -157,8 +157,8 @@ function mod:OnEvent(event, ...)
if not E.db.general.afk then return end
if InCombatLockdown() or CinematicFrame:IsShown() or MovieFrame:IsShown() then return end
if UnitCastingInfo("player") ~= nil then
--Don't activate afk if player is crafting stuff, check back in 30 seconds
if UnitCastingInfo("player") ~= nil or (AuctionFrame and AuctionFrame:IsVisible()) then
-- Don't activate afk if player is crafting stuff or at AH, check back in 30 seconds
self:ScheduleTimer("OnEvent", 30)
return
end