mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-29 00:23:48 +00:00
feat(Core/Scripting): add OnBeforeArenaCheckWinConditions hook for mod-arena-replay compatibility (#19856)
This commit is contained in:
@@ -192,6 +192,9 @@ void Arena::RemovePlayerAtLeave(Player* player)
|
||||
|
||||
void Arena::CheckWinConditions()
|
||||
{
|
||||
if (!sScriptMgr->OnBeforeArenaCheckWinConditions(this))
|
||||
return;
|
||||
|
||||
if (!GetAlivePlayersCountByTeam(TEAM_ALLIANCE) && GetPlayersCountByTeam(TEAM_HORDE))
|
||||
EndBattleground(TEAM_HORDE);
|
||||
else if (GetPlayersCountByTeam(TEAM_ALLIANCE) && !GetAlivePlayersCountByTeam(TEAM_HORDE))
|
||||
|
||||
Reference in New Issue
Block a user