diff options
author | megamage <none@none> | 2009-04-29 16:39:03 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-04-29 16:39:03 -0500 |
commit | e695016e94c08fbef0f2e2df4df13fd27f0c86ef (patch) | |
tree | 2c39a7598a1a9d1252328841be62b8f7f0f455f9 /src | |
parent | e0a3fb08bf741a50aaf341fe64a26f5ce7016dc2 (diff) |
[7736] Do not cast Deserter debuff at gamemaster Author: freghar
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Player.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index ef047c7dfc2..387ea279969 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -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); |