Scripts/Achievements: Move some achievement scripts to database.
Add database support for Ancient Protector and Ancient Courtyard Protector.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user