[7736] Do not cast Deserter debuff at gamemaster Author: freghar
--HG-- branch : trunk
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user