Fix crash by restricting to 1 bot per cycle

This commit is contained in:
NathanHandley
2025-03-09 20:06:35 -05:00
parent 9aba71e545
commit 2bc97d5a46
4 changed files with 36 additions and 85 deletions

View File

@@ -74,8 +74,8 @@ public:
void OnBeforeAuctionHouseMgrSendAuctionOutbiddedMail(AuctionHouseMgr* /*auctionHouseMgr*/, AuctionEntry* auction, Player* oldBidder, uint32& /*oldBidder_accId*/, Player* newBidder, uint32& newPrice, bool& /*sendNotification*/, bool& /*sendMail*/) override
{
//if (oldBidder && !newBidder)
// oldBidder->GetSession()->SendAuctionBidderNotification((uint32)auction->GetHouseId(), auction->Id, ObjectGuid::Create<HighGuid::Player>(auctionbot->GetAHBplayerGUID()), newPrice, auction->GetAuctionOutBid(), auction->item_template);
if (oldBidder && !newBidder)
oldBidder->GetSession()->SendAuctionBidderNotification((uint32)auction->GetHouseId(), auction->Id, ObjectGuid::Create<HighGuid::Player>(auctionbot->CurrentBotCharGUID), newPrice, auction->GetAuctionOutBid(), auction->item_template);
}
void OnBeforeAuctionHouseMgrUpdate() override