From 8f96a398d23451f7828c3ff8647e17f4bafaa90e Mon Sep 17 00:00:00 2001 From: yehonal Date: Thu, 29 Aug 2019 14:24:03 +0200 Subject: [PATCH] [AZTH-MS] removed old custom code Avoid login for change faction/name not needed anymore Co-authored-by: Kargatum --- src/server/game/Handlers/CharacterHandler.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/server/game/Handlers/CharacterHandler.cpp b/src/server/game/Handlers/CharacterHandler.cpp index 1b47988a..bcbe2d6a 100644 --- a/src/server/game/Handlers/CharacterHandler.cpp +++ b/src/server/game/Handlers/CharacterHandler.cpp @@ -891,18 +891,6 @@ void WorldSession::HandlePlayerLoginFromDB(LoginQueryHolder* holder) return; } - /* currently we cannot use it because of safety checks on changefaction - * that require to login to fix them - * [AZTH] hack for instant80 ( we're forcing all change faction and race ) - if (pCurrChar->HasAtLoginFlag(AT_LOGIN_CHANGE_FACTION) || pCurrChar->HasAtLoginFlag(AT_LOGIN_CHANGE_RACE)) - { - // following instruction allow core to destroy the Player instance - LogoutRequest(0); - KickPlayer(); // disconnect client, player no set to session and it will not deleted or saved at kick - return; - } - // [/AZTH] */ - pCurrChar->GetMotionMaster()->Initialize(); pCurrChar->SendDungeonDifficulty(false);