mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7736] Do not cast Deserter debuff at gamemaster
Signed-off-by: freghar <compmancz@gmail.com>
This commit is contained in:
parent
57fce910e0
commit
b22b603c0e
2 changed files with 2 additions and 2 deletions
|
|
@ -17515,7 +17515,7 @@ void Player::LeaveBattleground(bool teleportToEntryPoint)
|
||||||
bg->RemovePlayerAtLeave(GetGUID(), teleportToEntryPoint, true);
|
bg->RemovePlayerAtLeave(GetGUID(), teleportToEntryPoint, true);
|
||||||
|
|
||||||
// call after remove to be sure that player resurrected for correct cast
|
// 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 )
|
if( bg->GetStatus() == STATUS_IN_PROGRESS || bg->GetStatus() == STATUS_WAIT_JOIN )
|
||||||
CastSpell(this, 26013, true); // Deserter
|
CastSpell(this, 26013, true); // Deserter
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7735"
|
#define REVISION_NR "7736"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue