fix(Core/Character): Fix OnFirstLogin script hook (#9686)

This commit is contained in:
Skjalf
2021-12-14 20:06:41 -03:00
committed by GitHub
parent 19a3caa5eb
commit 2384ed1254

View File

@@ -982,9 +982,6 @@ void WorldSession::HandlePlayerLoginFromDB(LoginQueryHolder const& holder)
bool firstLogin = pCurrChar->HasAtLoginFlag(AT_LOGIN_FIRST);
if (firstLogin)
{
pCurrChar->RemoveAtLoginFlag(AT_LOGIN_FIRST);
PlayerInfo const* info = sObjectMgr->GetPlayerInfo(pCurrChar->getRace(), pCurrChar->getClass());
for (uint32 spellId : info->castSpells)
{