aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-29 16:19:04 -0500
committermegamage <none@none>2009-04-29 16:19:04 -0500
commitb89d307f758915252670b7392d58b0181f9d5429 (patch)
tree5fa69e54acf0e1a79a3c4923ad4c3e921fcbf71f /src
parent9a29b03e307ddf80475b46e32776b6b68a69856f (diff)
[7736] Do not cast Deserter debuff at gamemaster Author: freghar
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Player.cpp2
1 files changed, 1 insertions, 1 deletions
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