Skip to content

Commit

Permalink
Auction: Fixed auctions being bid on twice.
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlikely4r committed Mar 3, 2025
1 parent 7dbe145 commit faf2ceb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions playerbot/strategy/actions/AhAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@ bool AhBidAction::ExecuteCommand(Player* requester, std::string text, Unit* auct
if (!auction)
continue;

if (std::find_if(auctionPowers.begin(), auctionPowers.end(), [auction](std::pair<AuctionEntry*, uint32> i){return i.first == auction;}) != auctionPowers.end())
continue;

auction = auctionHouse->GetAuction(auction->Id);

if (!auction)
Expand Down

0 comments on commit faf2ceb

Please sign in to comment.