[AZTH] hack for kick-login if change flag active

This commit is contained in:
Yehonal
2016-08-02 16:15:24 +02:00
parent a6a8be75ef
commit 4f20475d12
@@ -782,6 +782,12 @@ void WorldSession::HandlePlayerLoginOpcode(WorldPacket & recvData)
return;
}
// [AZTH] hack for instant80 ( we're forcing all change faction and race )
if (p->HasAtLoginFlag(AT_LOGIN_CHANGE_FACTION) || p->HasAtLoginFlag(AT_LOGIN_CHANGE_RACE)) {
sess->KickPlayer();
}
// [/AZTH]
if (p->GetGUID() != playerGuid)
sess->KickPlayer(); // no return, go to normal loading
else