Core/Conditions: Improve CONDITION_REPUTATION_RANK, it should check for rank equality. This way it can be used in more cases.

This commit is contained in:
Nay
2011-04-22 17:42:30 +01:00
parent 226965ae41
commit 67198416f0
+2 -2
View File
@@ -62,8 +62,8 @@ bool Condition::Meets(Player * player, Unit* invoker)
break;
case CONDITION_REPUTATION_RANK:
{
FactionEntry const* faction = sFactionStore.LookupEntry(mConditionValue1);
condMeets = faction && uint32(player->GetReputationMgr().GetRank(faction)) >= mConditionValue2;
if (FactionEntry const* faction = sFactionStore.LookupEntry(mConditionValue1))
condMeets = uint32(player->GetReputationMgr().GetRank(faction)) == mConditionValue2;
break;
}
case CONDITION_ACHIEVEMENT: