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

This commit is contained in:
Artamedes authored and Ovahlord committed 2019-12-14 00:35:13 +01:00
1 parent 046a471da2
commit 40f24909be
1 file changed
+2
@@ -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)));