forked from mirror/azerothcore-wotlk
fix(Core/Battlefield): Restrict WG relic-room kick to wartime (#25960)
Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
3b58c9afad
commit
e7cf13a4a8
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user