header
ArenaLeaveConfirmer avatar

ArenaLeaveConfirmer

Install

ArenaLeaveConfirmer skips the confirmation popup which would normally appear when leaving arena, effectively reverting the change Blizzard made for patch 5.1.  It also skips the confirmation popup for surrendering.  Its entire code is the following:

local function ArenaLeaveConfirm(self)
    if IsActiveBattlefieldArena() or GetBattlefieldWinner() then
        self.button1:Click()
    end
end

hooksecurefunc(StaticPopupDialogs["CONFIRM_LEAVE_BATTLEFIELD"],"OnShow",ArenaLeaveConfirm)

hooksecurefunc(StaticPopupDialogs["CONFIRM_SURRENDER_ARENA"],"OnShow",ArenaLeaveConfirm)