[7412] Do not allow player with deserter debuff to be teleported to battleground Author: Triply
--HG-- branch : trunk
This commit is contained in:
@@ -427,6 +427,12 @@ void WorldSession::HandleBattleGroundPlayerPortOpcode( WorldPacket &recv_data )
|
|||||||
sLog.outError("Battleground: Invalid player queue info!");
|
sLog.outError("Battleground: Invalid player queue info!");
|
||||||
return;
|
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;
|
WorldPacket data;
|
||||||
switch(action)
|
switch(action)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7411"
|
#define REVISION_NR "7412"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|||||||
Reference in New Issue
Block a user