Skip to content

Commit f8205c8

Browse files
Nyeriahxfurryclaude
authored
fix(Core/Wintergrasp): remove redundant chamber teleport on battle start (azerothcore#26004)
Co-authored-by: Xfurry <xfurry.cmangos@outlook.com> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 0a9c55f commit f8205c8

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

src/server/game/Battlefield/Zones/BattlefieldWG.cpp

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -296,19 +296,7 @@ void BattlefieldWG::OnBattleStart()
296296
capturePoint->SetCapturePointData(capturePoint->GetCapturePointGo(),
297297
capturePoint->GetCapturePointGo()->GetEntry() == GO_WINTERGRASP_FACTORY_BANNER_SE || capturePoint->GetCapturePointGo()->GetEntry() == GO_WINTERGRASP_FACTORY_BANNER_SW ? GetAttackerTeam() : GetDefenderTeam());
298298

299-
for (uint8 team = 0; team < 2; ++team)
300-
for (ObjectGuid const& guid : Players[team])
301-
{
302-
// Kick player in orb room, TODO: offline player ?
303-
if (Player* player = ObjectAccessor::FindPlayer(guid))
304-
{
305-
float x, y, z;
306-
player->GetPosition(x, y, z);
307-
if (5500 > x && x > 5392 && y < 2880 && y > 2800 && z < 480)
308-
player->TeleportTo(MAP_NORTHREND, 5349.8686f, 2838.481f, 409.240f, 0.046328f);
309-
SendInitWorldStatesTo(player);
310-
}
311-
}
299+
SendInitWorldStatesToAll();
312300
// Initialize vehicle counter
313301
UpdateCounterVehicle(true);
314302
// Send start warning to all players

0 commit comments

Comments
 (0)