aboutsummaryrefslogtreecommitdiff
path: root/src/game/ObjectMgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/ObjectMgr.cpp')
-rw-r--r--src/game/ObjectMgr.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp
index c6cccc7f45e..e8967ef2f3e 100644
--- a/src/game/ObjectMgr.cpp
+++ b/src/game/ObjectMgr.cpp
@@ -7725,8 +7725,17 @@ bool PlayerCondition::Meets(Player const * player) const
FactionEntry const* faction = sFactionStore.LookupEntry(value1);
return faction && uint32(player->GetReputationMgr().GetRank(faction)) >= int32(value2);
}
+ case CONDITION_ACHIEVEMENT:
+ {
+ AchievementEntry const* achievement = GetAchievementStore()->LookupEntry(value1);
+ return (achievement,1);
+ }
case CONDITION_TEAM:
return player->GetTeam() == value1;
+ case CONDITION_CLASS:
+ return player->getClass() == value1;
+ case CONDITION_RACE:
+ return player->getRace() == value1;
case CONDITION_SKILL:
return player->HasSkill(value1) && player->GetBaseSkillValue(value1) >= value2;
case CONDITION_QUESTREWARDED: