* Fixed reputation buying from vendors where the items had 0 for Req rep
* faction, but >0 for Req rank. In that case it pulls the faction of the * vendor. * HUGE thanks to QAston and silverice --HG-- branch : trunk
This commit is contained in:
+1
-1
@@ -18971,7 +18971,7 @@ bool Player::BuyItemFromVendor(uint64 vendorguid, uint32 item, uint8 count, uint
|
|||||||
}
|
}
|
||||||
else if (!pProto->RequiredReputationFaction && pProto->RequiredReputationRank > 0)
|
else if (!pProto->RequiredReputationFaction && pProto->RequiredReputationRank > 0)
|
||||||
{
|
{
|
||||||
if (uint32(GetReputationRank(pCreature->getFaction())) < pProto->RequiredReputationRank)
|
if (uint32(GetReputationRank(pCreature->getFactionTemplateEntry()->faction)) < pProto->RequiredReputationRank)
|
||||||
{
|
{
|
||||||
SendBuyError( BUY_ERR_REPUTATION_REQUIRE, pCreature, item, 0);
|
SendBuyError( BUY_ERR_REPUTATION_REQUIRE, pCreature, item, 0);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user