* Add two flags for items with no stack limit
* Added proper checking of faction based on seller for items with RequiredReputaionFaction=0 * This will allow 100% proper WDB data to be used Thx to Malcrom and Brian --HG-- branch : trunk
This commit is contained in:
+9
-1
@@ -18211,11 +18211,19 @@ bool Player::BuyItemFromVendor(uint64 vendorguid, uint32 item, uint8 count, uint
|
||||
}
|
||||
}
|
||||
|
||||
if (uint32(GetReputationRank(pProto->RequiredReputationFaction)) < pProto->RequiredReputationRank)
|
||||
if (pProto->RequiredReputationFaction && (uint32(GetReputationRank(pProto->RequiredReputationFaction)) < pProto->RequiredReputationRank))
|
||||
{
|
||||
SendBuyError( BUY_ERR_REPUTATION_REQUIRE, pCreature, item, 0);
|
||||
return false;
|
||||
}
|
||||
else if (!pProto->RequiredReputationFaction && pProto->RequiredReputationRank > 0)
|
||||
{
|
||||
if (uint32(GetReputationRank(pCreature->getFaction())) < pProto->RequiredReputationRank)
|
||||
{
|
||||
SendBuyError( BUY_ERR_REPUTATION_REQUIRE, pCreature, item, 0);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (crItem->ExtendedCost)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user