fix(Core/Wintergrasp): disband raid groups on battle end (#26014)

Co-authored-by: Xfurry <xfurry.cmangos@outlook.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Andrew
2026-05-28 22:37:06 -03:00
committed by GitHub
parent 419af5796e
commit 43e16de514
@@ -407,6 +407,14 @@ void Battlefield::EndBattle(bool endByTimer)
OnBattleEnd(endByTimer);
sScriptMgr->OnBattlefieldWarEnd(this, endByTimer);
for (uint8 team = 0; team < PVP_TEAMS_COUNT; ++team)
{
for (ObjectGuid const& guid : Groups[team])
if (Group* group = sGroupMgr->GetGroupByGUID(guid.GetCounter()))
group->Disband();
Groups[team].clear();
}
// Reset battlefield timer
Timer = NoWarBattleTime;
SendInitWorldStatesToAll();