From 44bdbc9ced075bc4c9edfee31537af6df4191c4b Mon Sep 17 00:00:00 2001 From: NathanHandley Date: Wed, 10 Sep 2025 06:52:38 -0500 Subject: [PATCH] Fix issue where buyer undercuts bids --- src/AuctionHouseBot.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/AuctionHouseBot.cpp b/src/AuctionHouseBot.cpp index 5035627..0d0225c 100644 --- a/src/AuctionHouseBot.cpp +++ b/src/AuctionHouseBot.cpp @@ -770,10 +770,7 @@ void AuctionHouseBot::addNewAuctionBuyerBotBid(Player* AHBplayer, AHBConfig *con bidAmount = auction->GetAuctionOutBid(); if (auction->bidder) - { sAuctionMgr->SendAuctionOutbiddedMail(auction, bidAmount, AHBplayer, trans); - CharacterDatabase.CommitTransaction(trans); - } auction->bidder = AHBplayer->GetGUID(); auction->bid = bidAmount; @@ -785,6 +782,8 @@ void AuctionHouseBot::addNewAuctionBuyerBotBid(Player* AHBplayer, AHBConfig *con stmt->SetData(1, auction->bid); stmt->SetData(2, auction->Id); trans->Append(stmt); + + CharacterDatabase.CommitTransaction(trans); } else if (doBuyout) { @@ -815,6 +814,7 @@ void AuctionHouseBot::Update() if (AHCharacters.size() == 0) return; + // Only update if the update cycle has been hit LastCycleCount++; if (LastCycleCount < CyclesBetweenBuyOrSell)