Core/Player: the stack number of vendor items should not multiply the buy price

This commit is contained in:
Artamedes
2019-12-14 00:35:13 +01:00
committed by Ovahlord
parent 046a471da2
commit 40f24909be

View File

@@ -22855,6 +22855,8 @@ bool Player::BuyItemFromVendorSlot(ObjectGuid vendorguid, uint32 vendorslot, uin
}
price = pProto->BuyPrice * count; //it should not exceed MAX_MONEY_AMOUNT
price /= pProto->BuyCount;
// reputation discount
price = uint32(floor(price * GetReputationPriceDiscount(creature)));