forked from mirror/azerothcore-wotlk
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user