diff options
author | iridinite <codingcuddlewolf@gmail.com> | 2016-10-14 23:52:26 +0200 |
---|---|---|
committer | joschiwald <joschiwald.trinity@gmail.com> | 2017-10-03 16:02:32 +0200 |
commit | fd53cbc5f20a5c828b9b2c039a718a35d345028c (patch) | |
tree | ca8e205918cdc014fcd3db2bc86a9c3df78d0243 /src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp | |
parent | ff90a3f3c46c778a993c90470f278ef12e57c7a1 (diff) |
[3.3.5] AHBot Characters (#17885)
(cherry picked from commit 6dc0a9f04ad62e3bb7165a210b894d177ceffc05)
Diffstat (limited to 'src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp')
-rw-r--r-- | src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp b/src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp index 728a47f301b..3a05b3b1898 100644 --- a/src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp +++ b/src/server/game/AuctionHouseBot/AuctionHouseBotSeller.cpp @@ -641,7 +641,7 @@ uint32 AuctionBotSeller::SetStat(SellerConfiguration& config) { ItemTemplate const* prototype = item->GetTemplate(); if (prototype) - if (!auctionEntry->owner) // Add only ahbot items + if (!auctionEntry->owner || sAuctionBotConfig->IsBotChar(auctionEntry->owner)) // Add only ahbot items ++itemsSaved[prototype->GetQuality()][prototype->GetClass()]; } } @@ -1017,7 +1017,7 @@ void AuctionBotSeller::AddNewAuctions(SellerConfiguration& config) AuctionEntry* auctionEntry = new AuctionEntry(); auctionEntry->Id = sObjectMgr->GenerateAuctionID(); - auctionEntry->owner = UI64LIT(0); + auctionEntry->owner = sAuctionBotConfig->GetRandChar(); auctionEntry->itemGUIDLow = item->GetGUID().GetCounter(); auctionEntry->itemEntry = item->GetEntry(); auctionEntry->startbid = bidPrice; |