From b89d307f758915252670b7392d58b0181f9d5429 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 29 Apr 2009 16:19:04 -0500 Subject: [7736] Do not cast Deserter debuff at gamemaster Author: freghar --HG-- branch : trunk --- src/game/Player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/Player.cpp b/src/game/Player.cpp index ff4992931d1..e17afc32fd9 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -17928,7 +17928,7 @@ void Player::LeaveBattleground(bool teleportToEntryPoint) bg->RemovePlayerAtLeave(GetGUID(), teleportToEntryPoint, true); // call after remove to be sure that player resurrected for correct cast - if( bg->isBattleGround() && sWorld.getConfig(CONFIG_BATTLEGROUND_CAST_DESERTER) ) + if( bg->isBattleGround() && !isGameMaster() && sWorld.getConfig(CONFIG_BATTLEGROUND_CAST_DESERTER) ) { if( bg->GetStatus() == STATUS_IN_PROGRESS || bg->GetStatus() == STATUS_WAIT_JOIN ) CastSpell(this, 26013, true); // Deserter -- cgit v1.2.3