From 57911957ad1ee1595b259b6fe35b03386637283d Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Tue, 22 Jun 2021 01:00:27 +0200 Subject: [PATCH] fix(Core/BattlegroundAB): add missing Victory near sound (#5556) --- .../game/Battlegrounds/Zones/BattlegroundAB.cpp | 12 ++++++++++-- src/server/game/Battlegrounds/Zones/BattlegroundAB.h | 3 ++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundAB.cpp b/src/server/game/Battlegrounds/Zones/BattlegroundAB.cpp index 678256ce6..889d7f412 100644 --- a/src/server/game/Battlegrounds/Zones/BattlegroundAB.cpp +++ b/src/server/game/Battlegrounds/Zones/BattlegroundAB.cpp @@ -96,8 +96,16 @@ void BattlegroundAB::PostUpdateImpl(uint32 diff) RewardReputationToTeam(teamId == TEAM_ALLIANCE ? 509 : 510, 10, teamId); if (information < uint8(m_TeamScores[teamId] / BG_AB_WARNING_NEAR_VICTORY_SCORE)) { - SendMessageToAll(teamId == TEAM_ALLIANCE ? LANG_BG_AB_A_NEAR_VICTORY : LANG_BG_AB_H_NEAR_VICTORY, CHAT_MSG_BG_SYSTEM_NEUTRAL); - PlaySoundToAll(BG_AB_SOUND_NEAR_VICTORY); + if (teamId == TEAM_ALLIANCE) + { + SendMessageToAll(LANG_BG_AB_A_NEAR_VICTORY, CHAT_MSG_BG_SYSTEM_NEUTRAL); + PlaySoundToAll(BG_AB_SOUND_NEAR_VICTORY_ALLIANCE); + } + else + { + SendMessageToAll(LANG_BG_AB_H_NEAR_VICTORY, CHAT_MSG_BG_SYSTEM_NEUTRAL); + PlaySoundToAll(BG_AB_SOUND_NEAR_VICTORY_HORDE); + } } UpdateWorldState(teamId == TEAM_ALLIANCE ? BG_AB_OP_RESOURCES_ALLY : BG_AB_OP_RESOURCES_HORDE, m_TeamScores[teamId]); diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundAB.h b/src/server/game/Battlegrounds/Zones/BattlegroundAB.h index 2e268beb8..758d10c03 100644 --- a/src/server/game/Battlegrounds/Zones/BattlegroundAB.h +++ b/src/server/game/Battlegrounds/Zones/BattlegroundAB.h @@ -149,7 +149,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_Misc