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());
}
@@ -1586,7 +1586,7 @@ uint8 BattlegroundAV::GetAttackString(BG_AV_Nodes node, TeamId teamId)
if (teamId == TEAM_ALLIANCE)
strId = AV_TEXT_A_HERALD_ICEBLOOD_TOWER_ATTACK;
else
strId = AV_TEXT_H_HERALD_ICEBLOOD_TOWER_ATTACK;
strId = AV_TEXT_H_HERALD_ICEBLOOD_TOWER_ATTACK;
break;
case BG_AV_NODES_ICEBLOOD_GRAVE:
if (teamId == TEAM_ALLIANCE)