mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-09 08:17:56 +00:00
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);
|
OnBattleEnd(endByTimer);
|
||||||
sScriptMgr->OnBattlefieldWarEnd(this, 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
|
// Reset battlefield timer
|
||||||
Timer = NoWarBattleTime;
|
Timer = NoWarBattleTime;
|
||||||
SendInitWorldStatesToAll();
|
SendInitWorldStatesToAll();
|
||||||
|
|||||||
Reference in New Issue
Block a user