mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[8476] Revert some recent cleanup changes, some other fixes and cleanups.
This commit is contained in:
parent
bd30769dec
commit
7a2df3c309
7 changed files with 18 additions and 21 deletions
|
|
@ -7080,10 +7080,7 @@ bool PlayerCondition::Meets(Player const * player) const
|
|||
case CONDITION_REPUTATION_RANK:
|
||||
{
|
||||
FactionEntry const* faction = sFactionStore.LookupEntry(value1);
|
||||
// -1 used if faction couldn't be found
|
||||
if (player->GetReputationMgr().GetRank(faction) == -1)
|
||||
return false;
|
||||
return faction && uint32(player->GetReputationMgr().GetRank(faction)) >= value2;
|
||||
return faction && player->GetReputationMgr().GetRank(faction) >= int32(value2);
|
||||
}
|
||||
case CONDITION_TEAM:
|
||||
return player->GetTeam() == value1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue