mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-07-10 19:03:11 +00:00
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:
@@ -911,8 +911,8 @@ void BattlefieldWG::OnPlayerEnterZone(Player* player)
|
|||||||
// Send worldstate to player
|
// Send worldstate to player
|
||||||
SendInitWorldStatesTo(player);
|
SendInitWorldStatesTo(player);
|
||||||
|
|
||||||
// xinef: Attacker, if hidden in relic room kick him out
|
// xinef: Attacker, if hidden in relic room kick him out (only during wartime)
|
||||||
if (player->GetTeamId() == GetAttackerTeam())
|
if (IsWarTime() && player->GetTeamId() == GetAttackerTeam())
|
||||||
if (player->GetPositionX() > 5400.0f && player->GetPositionX() < 5490.0f && player->GetPositionY() > 2803.0f && player->GetPositionY() < 2878.0f)
|
if (player->GetPositionX() > 5400.0f && player->GetPositionX() < 5490.0f && player->GetPositionY() > 2803.0f && player->GetPositionY() < 2878.0f)
|
||||||
KickPlayerFromBattlefield(player->GetGUID());
|
KickPlayerFromBattlefield(player->GetGUID());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1586,7 +1586,7 @@ uint8 BattlegroundAV::GetAttackString(BG_AV_Nodes node, TeamId teamId)
|
|||||||
if (teamId == TEAM_ALLIANCE)
|
if (teamId == TEAM_ALLIANCE)
|
||||||
strId = AV_TEXT_A_HERALD_ICEBLOOD_TOWER_ATTACK;
|
strId = AV_TEXT_A_HERALD_ICEBLOOD_TOWER_ATTACK;
|
||||||
else
|
else
|
||||||
strId = AV_TEXT_H_HERALD_ICEBLOOD_TOWER_ATTACK;
|
strId = AV_TEXT_H_HERALD_ICEBLOOD_TOWER_ATTACK;
|
||||||
break;
|
break;
|
||||||
case BG_AV_NODES_ICEBLOOD_GRAVE:
|
case BG_AV_NODES_ICEBLOOD_GRAVE:
|
||||||
if (teamId == TEAM_ALLIANCE)
|
if (teamId == TEAM_ALLIANCE)
|
||||||
|
|||||||
Reference in New Issue
Block a user