aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Battlegrounds/Zones/BattlegroundAB.cpp7
-rw-r--r--src/server/game/Battlegrounds/Zones/BattlegroundAB.h3
2 files changed, 8 insertions, 2 deletions
diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundAB.cpp b/src/server/game/Battlegrounds/Zones/BattlegroundAB.cpp
index 5dce8af082f..aeb316f443d 100644
--- a/src/server/game/Battlegrounds/Zones/BattlegroundAB.cpp
+++ b/src/server/game/Battlegrounds/Zones/BattlegroundAB.cpp
@@ -156,10 +156,15 @@ void BattlegroundAB::PostUpdateImpl(uint32 diff)
if (!m_IsInformedNearVictory && m_TeamScores[team] > BG_AB_WARNING_NEAR_VICTORY_SCORE)
{
if (team == TEAM_ALLIANCE)
+ {
SendBroadcastText(BG_AB_TEXT_ALLIANCE_NEAR_VICTORY, CHAT_MSG_BG_SYSTEM_NEUTRAL);
+ PlaySoundToAll(BG_AB_SOUND_NEAR_VICTORY_ALLIANCE);
+ }
else
+ {
SendBroadcastText(BG_AB_TEXT_HORDE_NEAR_VICTORY, CHAT_MSG_BG_SYSTEM_NEUTRAL);
- PlaySoundToAll(BG_AB_SOUND_NEAR_VICTORY);
+ PlaySoundToAll(BG_AB_SOUND_NEAR_VICTORY_HORDE);
+ }
m_IsInformedNearVictory = true;
}
diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundAB.h b/src/server/game/Battlegrounds/Zones/BattlegroundAB.h
index 3b1a48a621b..c30958d9c19 100644
--- a/src/server/game/Battlegrounds/Zones/BattlegroundAB.h
+++ b/src/server/game/Battlegrounds/Zones/BattlegroundAB.h
@@ -197,7 +197,8 @@ enum BG_AB_Sounds
BG_AB_SOUND_NODE_CAPTURED_HORDE = 8213,
BG_AB_SOUND_NODE_ASSAULTED_ALLIANCE = 8212,
BG_AB_SOUND_NODE_ASSAULTED_HORDE = 8174,
- BG_AB_SOUND_NEAR_VICTORY = 8456
+ BG_AB_SOUND_NEAR_VICTORY_ALLIANCE = 8456,
+ BG_AB_SOUND_NEAR_VICTORY_HORDE = 8457
};
enum BG_AB_Objectives