mirror of
https://github.com/mangosfour/server.git
synced 2025-12-29 16:37:04 +00:00
[11794] Add support to start timed achievements in BGs
Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
0eff04c161
commit
dc5595a91f
12 changed files with 30 additions and 1 deletions
|
|
@ -174,6 +174,9 @@ void BattleGroundAB::StartingEventOpenDoors()
|
|||
SpawnBGObject(m_BgObjects[BG_AB_OBJECT_SPEEDBUFF_STABLES + buff + i * 3], RESPAWN_IMMEDIATELY);
|
||||
}
|
||||
OpenDoorEvent(BG_EVENT_DOOR);
|
||||
|
||||
// Players that join battleground after start are not eligible to get achievement.
|
||||
StartTimedAchievement(ACHIEVEMENT_CRITERIA_TYPE_WIN_BG, BG_AB_EVENT_START_BATTLE);
|
||||
}
|
||||
|
||||
void BattleGroundAB::AddPlayer(Player *plr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue