Core/Achievements: Force all calls to AchievementMgr be done through Player functions (Remove GetAchievementMgr)

Note: No real use in 3.3.5 but will be used in 4.3.4
This commit is contained in:
Spp committed 2012-09-18 14:29:53 +02:00
1 parent 2e21fa6b92
commit 8c5f011e79
29 files changed
+185 -150

No files matched your search

+2 -2
View File
@@ -339,7 +339,7 @@ void InstanceScript::DoStartTimedAchievement(AchievementCriteriaTimedTypes type,
if (!PlayerList.isEmpty())
for (Map::PlayerList::const_iterator i = PlayerList.begin(); i != PlayerList.end(); ++i)
if (Player* player = i->getSource())
player->GetAchievementMgr().StartTimedAchievement(type, entry);
player->StartTimedAchievement(type, entry);
}
// Stop timed achievement for all players in instance
@@ -350,7 +350,7 @@ void InstanceScript::DoStopTimedAchievement(AchievementCriteriaTimedTypes type,
if (!PlayerList.isEmpty())
for (Map::PlayerList::const_iterator i = PlayerList.begin(); i != PlayerList.end(); ++i)
if (Player* player = i->getSource())
player->GetAchievementMgr().RemoveTimedAchievement(type, entry);
player->RemoveTimedAchievement(type, entry);
}
// Remove Auras due to Spell on all players in instance