Core/Achievements: Refactored HasAchieved to take only achievement id as parameter

This commit is contained in:
Shauren
2011-12-12 18:19:26 +01:00
parent d588fd4bbe
commit 3ff67fb257
5 changed files with 9 additions and 12 deletions
+1 -4
View File
@@ -67,11 +67,8 @@ bool Condition::Meets(Player* player, Unit* invoker)
break;
}
case CONDITION_ACHIEVEMENT:
{
AchievementEntry const* achievement = GetAchievementStore()->LookupEntry(mConditionValue1);
condMeets = player->GetAchievementMgr().HasAchieved(achievement);
condMeets = player->GetAchievementMgr().HasAchieved(mConditionValue1);
break;
}
case CONDITION_TEAM:
condMeets = player->GetTeam() == mConditionValue1;
break;