mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[7412] Do not allow player with deserter debuff to be teleported to battleground
Signed-off-by: Triply <triply@getmangos.com>
This commit is contained in:
parent
f42815f04b
commit
42f579f280
2 changed files with 7 additions and 1 deletions
|
|
@ -425,6 +425,12 @@ void WorldSession::HandleBattleGroundPlayerPortOpcode( WorldPacket &recv_data )
|
|||
sLog.outError("Battleground: Invalid player queue info!");
|
||||
return;
|
||||
}
|
||||
//if player is trying to enter battleground (not arena!) and he has deserter debuff, we must just remove him from queue
|
||||
if( arenatype == 0 && !_player->CanJoinToBattleground() )
|
||||
{
|
||||
sLog.outDebug("Battleground: player %s (%u) has a deserter debuff, do not port him to battleground!", _player->GetName(), _player->GetGUIDLow());
|
||||
action = 0;
|
||||
}
|
||||
WorldPacket data;
|
||||
switch(action)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue