fix(Core/Battlefield): Restrict WG relic-room kick to wartime (#25960)

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Andrew
2026-05-24 20:01:11 -03:00
committed by GitHub
parent 3b58c9afad
commit e7cf13a4a8
2 changed files with 3 additions and 3 deletions
@@ -911,8 +911,8 @@ void BattlefieldWG::OnPlayerEnterZone(Player* player)
// Send worldstate to player
SendInitWorldStatesTo(player);
// xinef: Attacker, if hidden in relic room kick him out
if (player->GetTeamId() == GetAttackerTeam())
// xinef: Attacker, if hidden in relic room kick him out (only during wartime)
if (IsWarTime() && player->GetTeamId() == GetAttackerTeam())
if (player->GetPositionX() > 5400.0f && player->GetPositionX() < 5490.0f && player->GetPositionY() > 2803.0f && player->GetPositionY() < 2878.0f)
KickPlayerFromBattlefield(player->GetGUID());
}