mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[11892] Really fix [11890]. This basicly reverts commit 11890
Remove the actually not required faction check in Player::GetNPCIfCanInteractWith - this is done by IsHostileTo a line before Improve the Player-login AtWar selection to also consider forced reactions Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
85309aa3c1
commit
6aab5c1022
8 changed files with 70 additions and 61 deletions
|
|
@ -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, false) >= ReputationRank(value2);
|
||||
return faction && player->GetReputationMgr().GetRank(faction) >= ReputationRank(value2);
|
||||
}
|
||||
case CONDITION_TEAM:
|
||||
return uint32(player->GetTeam()) == value1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue