[8476] Revert some recent cleanup changes, some other fixes and cleanups.

This commit is contained in:
VladimirMangos 2009-09-05 22:06:53 +04:00
parent bd30769dec
commit 7a2df3c309
7 changed files with 18 additions and 21 deletions

View file

@ -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;