[11794] Add support to start timed achievements in BGs

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
Feanordev 2011-09-16 21:42:10 +02:00 committed by Schmoozerd
parent 0eff04c161
commit dc5595a91f
12 changed files with 30 additions and 1 deletions

View file

@ -127,6 +127,9 @@ void BattleGroundWS::StartingEventOpenDoors()
SpawnEvent(WS_EVENT_SPIRITGUIDES_SPAWN, 0, true);
SpawnEvent(WS_EVENT_FLAG_A, 0, true);
SpawnEvent(WS_EVENT_FLAG_H, 0, true);
// Players that join battleground after start are not eligible to get achievement.
StartTimedAchievement(ACHIEVEMENT_CRITERIA_TYPE_WIN_BG, BG_WS_EVENT_START_BATTLE);
}
void BattleGroundWS::AddPlayer(Player *plr)