[7736] Do not cast Deserter debuff at gamemaster Author: freghar

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-29 16:39:03 -05:00
parent e0a3fb08bf
commit e695016e94

View File

@@ -17522,7 +17522,7 @@ void Player::LeaveBattleground(bool teleportToEntryPoint)
{
if(BattleGround *bg = GetBattleGround())
{
bool need_debuf = bg->isBattleGround() && (bg->GetStatus() == STATUS_IN_PROGRESS) && sWorld.getConfig(CONFIG_BATTLEGROUND_CAST_DESERTER);
bool need_debuf = bg->isBattleGround() && !isGameMaster() && (bg->GetStatus() == STATUS_IN_PROGRESS) && sWorld.getConfig(CONFIG_BATTLEGROUND_CAST_DESERTER);
bg->RemovePlayerAtLeave(GetGUID(), teleportToEntryPoint, true);