[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

@ -109,6 +109,9 @@ void BattleGroundEY::StartingEventOpenDoors()
uint8 buff = urand(0, 2);
SpawnBGObject(m_BgObjects[BG_EY_OBJECT_SPEEDBUFF_FEL_REAVER + buff + i * 3], RESPAWN_IMMEDIATELY);
}
// Players that join battleground after start are not eligible to get achievement.
StartTimedAchievement(ACHIEVEMENT_CRITERIA_TYPE_WIN_BG, BG_EY_EVENT_START_BATTLE);
}
void BattleGroundEY::AddPoints(Team team, uint32 Points)