[7736] Do not cast Deserter debuff at gamemaster

Signed-off-by: freghar <compmancz@gmail.com>
This commit is contained in:
freghar 2009-04-29 22:14:14 +02:00
parent 57fce910e0
commit b22b603c0e
2 changed files with 2 additions and 2 deletions

View file

@ -17515,7 +17515,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

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7735"
#define REVISION_NR "7736"
#endif // __REVISION_NR_H__