mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 19:05:42 +00:00
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 (HasAura(VISUAL_AURA))
|
||||
RemoveAurasDueToSpell(VISUAL_AURA);
|
||||
|
||||
m_ExtraFlags &= ~PLAYER_EXTRA_GM_INVISIBLE; //remove flag
|
||||
RemoveAurasDueToSpell(VISUAL_AURA);
|
||||
m_ExtraFlags &= ~PLAYER_EXTRA_GM_INVISIBLE;
|
||||
m_serverSideVisibility.SetValue(SERVERSIDE_VISIBILITY_GM, SEC_PLAYER);
|
||||
|
||||
getHostileRefMgr().setOnlineOfflineState(false);
|
||||
CombatStopWithPets();
|
||||
}
|
||||
else
|
||||
{
|
||||
AddAura(VISUAL_AURA, this);
|
||||
|
||||
m_ExtraFlags |= PLAYER_EXTRA_GM_INVISIBLE; //add flag
|
||||
|
||||
SetAcceptWhispers(false);
|
||||
SetGameMaster(true);
|
||||
|
||||
m_ExtraFlags |= PLAYER_EXTRA_GM_INVISIBLE;
|
||||
m_serverSideVisibility.SetValue(SERVERSIDE_VISIBILITY_GM, GetSession()->GetSecurity());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user