Revert revisions 67325b1a0af0 and a0cba24b9060.
Made vendors ignore gold cost by default when extended cost is set, except when item has ITEM_FLAGS_EXTRA_EXT_COST_REQUIRES_GOLD flag --HG-- branch : trunk
This commit is contained in:
@@ -772,7 +772,7 @@ void WorldSession::SendListInventory(uint64 vendorguid)
|
||||
++count;
|
||||
|
||||
// reputation discount
|
||||
int32 price = crItem->IsExcludeMoneyPrice() ? 0 : uint32(floor(pProto->BuyPrice * discountMod));
|
||||
int32 price = crItem->IsGoldRequired(pProto) ? uint32(floor(pProto->BuyPrice * discountMod)) : 0;
|
||||
|
||||
data << uint32(vendorslot+1); // client expects counting to start at 1
|
||||
data << uint32(crItem->item);
|
||||
@@ -781,7 +781,7 @@ void WorldSession::SendListInventory(uint64 vendorguid)
|
||||
data << uint32(price);
|
||||
data << uint32(pProto->MaxDurability);
|
||||
data << uint32(pProto->BuyCount);
|
||||
data << uint32(crItem->GetExtendedCostId());
|
||||
data << uint32(crItem->ExtendedCost);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user