mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
[7736] Do not cast Deserter debuff at gamemaster Author: freghar
--HG-- branch : trunk
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user