* 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 parent
a1bf304945
commit
23bdbf1ad3
1 file changed
+1
-1
+1
-1
@@ -18971,7 +18971,7 @@ bool Player::BuyItemFromVendor(uint64 vendorguid, uint32 item, uint8 count, uint
|
||||
}
|
||||
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);
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user