Core/Player: the stack number of vendor items should not multiply the buy price
This commit is contained in:
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)));
|
||||
|
||||
|
||||
Reference in new issue
Block a user