mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-07-11 03:13:10 +00:00
[AZTH] hack for kick-login if change flag active
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user