[11890] Fix Player::GetNPCIfCanInteractWith to consider forced reactions

This will fix ie quest 9410 A Spirit Guide

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
Schmoozerd 2012-01-27 00:20:00 +01:00
parent 0fe4f21b6a
commit 3e552fc739
8 changed files with 35 additions and 45 deletions

View file

@ -7482,7 +7482,7 @@ bool PlayerCondition::Meets(Player const * player) const
case CONDITION_REPUTATION_RANK:
{
FactionEntry const* faction = sFactionStore.LookupEntry(value1);
return faction && player->GetReputationMgr().GetRank(faction) >= ReputationRank(value2);
return faction && player->GetReputationMgr().GetRank(faction, false) >= ReputationRank(value2);
}
case CONDITION_TEAM:
return uint32(player->GetTeam()) == value1;