fix(Scripts/Command): Command gm visible on should not mark you wit… (#14057)
This commit is contained in:
@@ -2239,21 +2239,17 @@ void Player::SetGMVisible(bool on)
|
|||||||
|
|
||||||
if (on)
|
if (on)
|
||||||
{
|
{
|
||||||
if (HasAura(VISUAL_AURA))
|
RemoveAurasDueToSpell(VISUAL_AURA);
|
||||||
RemoveAurasDueToSpell(VISUAL_AURA);
|
m_ExtraFlags &= ~PLAYER_EXTRA_GM_INVISIBLE;
|
||||||
|
|
||||||
m_ExtraFlags &= ~PLAYER_EXTRA_GM_INVISIBLE; //remove flag
|
|
||||||
m_serverSideVisibility.SetValue(SERVERSIDE_VISIBILITY_GM, SEC_PLAYER);
|
m_serverSideVisibility.SetValue(SERVERSIDE_VISIBILITY_GM, SEC_PLAYER);
|
||||||
|
|
||||||
|
getHostileRefMgr().setOnlineOfflineState(false);
|
||||||
|
CombatStopWithPets();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
AddAura(VISUAL_AURA, this);
|
AddAura(VISUAL_AURA, this);
|
||||||
|
m_ExtraFlags |= PLAYER_EXTRA_GM_INVISIBLE;
|
||||||
m_ExtraFlags |= PLAYER_EXTRA_GM_INVISIBLE; //add flag
|
|
||||||
|
|
||||||
SetAcceptWhispers(false);
|
|
||||||
SetGameMaster(true);
|
|
||||||
|
|
||||||
m_serverSideVisibility.SetValue(SERVERSIDE_VISIBILITY_GM, GetSession()->GetSecurity());
|
m_serverSideVisibility.SetValue(SERVERSIDE_VISIBILITY_GM, GetSession()->GetSecurity());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user