mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(Core/AuctionHouse): show correct error when bidding on unavailabl… (#26377)
This commit is contained in:
@@ -461,7 +461,14 @@ void WorldSession::HandleAuctionPlaceBid(WorldPacket& recvData)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!auction || auction->owner == player->GetGUID())
|
if (!auction)
|
||||||
|
{
|
||||||
|
// auction was cancelled or already bought by someone else
|
||||||
|
SendAuctionCommandResult(0, AUCTION_PLACE_BID, ERR_AUCTION_ITEM_NOT_FOUND);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (auction->owner == player->GetGUID())
|
||||||
{
|
{
|
||||||
//you cannot bid your own auction:
|
//you cannot bid your own auction:
|
||||||
SendAuctionCommandResult(0, AUCTION_PLACE_BID, ERR_AUCTION_BID_OWN);
|
SendAuctionCommandResult(0, AUCTION_PLACE_BID, ERR_AUCTION_BID_OWN);
|
||||||
|
|||||||
Reference in New Issue
Block a user