From bb9266219df115d70b9a39776fed3b8c97cd1e71 Mon Sep 17 00:00:00 2001 From: pigmonkey Date: Sun, 3 Jul 2011 03:11:04 -0400 Subject: [PATCH] Fixed AH buying --- modules/macros.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/macros.lua b/modules/macros.lua index 0fed3f9..1228029 100644 --- a/modules/macros.lua +++ b/modules/macros.lua @@ -168,12 +168,8 @@ end -- mass buyout local bought = {} -local finished = false -local last = nil function mod:AuctionHouseBuyout() local selected = GetSelectedAuctionItem("list") - if last == selected and finished then return end - last, finished = selected, false if selected>0 then local name,_,count,_,_,_,_,_,price = GetAuctionItemInfo("list", selected) for j=50,1,-1 do @@ -191,13 +187,12 @@ function mod:AuctionHouseBuyout() -- no purchase made, buy selected PlaceAuctionBid("list", selected, price) + SetSelectedAuctionItem("list", 0); self:Print("All auctions bought.") - finished = true end end function mod:QueryAuctionItems() - finished = false wipe(bought) end