Update Client.cpp

This commit is contained in:
John
2021-08-17 10:47:57 -04:00
committed by GitHub
parent b0b8f6d799
commit cec47798d1

View File

@@ -1992,6 +1992,9 @@ bool Client::setGodMode(bool value) {
m_godLevel = 0;
m_godMode = false;
m_godValidated = false;
// reset observers and notify cells of potential change
CellPermissions::ViewerChangeObserver o(creatureObject);
ObserveTracker::onGodModeChanged(*this);
// remove the characterAbility "admin" so GM commands aren't sent by the client while not in God Mode
IGNORE_RETURN(creatureObject->revokeCommand(AdminAccountManager::getAdminCommandName(), false, true));
return true;