mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
RequiredReputationFaction == 0 && RequiredReputationRank != 0 means its some leftover data, not a sign we should check standing with vendor's faction
This fixes players "randomly" being unable to purchase an item due to missing reputation Fixes issue #2193. --HG-- branch : trunk
This commit is contained in:
@@ -19573,14 +19573,6 @@ bool Player::BuyItemFromVendorSlot(uint64 vendorguid, uint32 vendorslot, uint32
|
||||
SendBuyError(BUY_ERR_REPUTATION_REQUIRE, pCreature, item, 0);
|
||||
return false;
|
||||
}
|
||||
else if (!pProto->RequiredReputationFaction && pProto->RequiredReputationRank > 0)
|
||||
{
|
||||
if (uint32(GetReputationRank(pCreature->getFactionTemplateEntry()->faction)) < pProto->RequiredReputationRank)
|
||||
{
|
||||
SendBuyError(BUY_ERR_REPUTATION_REQUIRE, pCreature, item, 0);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (crItem->ExtendedCost)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user