Scripts/Achievements: Move some achievement scripts to database.

Add database support for Ancient Protector and Ancient Courtyard Protector.
This commit is contained in:
Supabad
2011-04-21 23:38:15 +02:00
parent 97f482cd82
commit 3b99e173f0
5 changed files with 17 additions and 60 deletions
@@ -490,15 +490,6 @@ void BattlegroundSA::UpdatePlayerScore(Player* Source, uint32 type, uint32 value
Battleground::UpdatePlayerScore(Source,type,value, doAddHonor);
}
uint32 BattlegroundSA::GetPlayerDemolisherScore(Player* source)
{
BattlegroundScoreMap::iterator itr = m_PlayerScores.find(source->GetGUID());
if (itr == m_PlayerScores.end()) // player not found...
return 0;
else
return ((BattlegroundSAScore*)itr->second)->demolishers_destroyed;
}
void BattlegroundSA::TeleportPlayers()
{
for (BattlegroundPlayerMap::const_iterator itr = GetPlayers().begin(); itr != GetPlayers().end(); ++itr)
@@ -486,8 +486,6 @@ class BattlegroundSA : public Battleground
/* Scorekeeping */
/// Update score board
uint32 GetPlayerDemolisherScore(Player* /*source*/);
void UpdatePlayerScore(Player *Source, uint32 type, uint32 value, bool doAddHonor = true);
private: