mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[6926] Use buyout to buy an auction when the last bid is close to the buyout price.
Signed-off-by: megamage <megamage@getmangos.com> Fixed cheating possibility with original patch changes. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
128f808858
commit
c7ba0afad4
2 changed files with 8 additions and 3 deletions
|
|
@ -365,10 +365,15 @@ void WorldSession::HandleAuctionPlaceBid( WorldPacket & recv_data )
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (price < (auction->bid + objmgr.GetAuctionOutBid(auction->bid)))
|
// cheating
|
||||||
|
if(price <= auction->bid)
|
||||||
|
return;
|
||||||
|
|
||||||
|
// price too low for next bid if not buyout
|
||||||
|
if ((price < auction->buyout || auction->buyout == 0) &&
|
||||||
|
price < auction->bid + objmgr.GetAuctionOutBid(auction->bid))
|
||||||
{
|
{
|
||||||
//auction has already higher bid, client tests it!
|
//auction has already higher bid, client tests it!
|
||||||
//SendAuctionCommandResult(auction->auctionId, AUCTION_PLACE_BID, ???);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "6925"
|
#define REVISION_NR "6926"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue