Minor improvements for OnFirstLogin hook

it can be casted with AT_LOGIN_FIRST flag check
This commit is contained in:
Yehonal
2017-07-31 13:01:44 +00:00
parent 10eddae700
commit 2afb767616

View File

@@ -1072,9 +1072,12 @@ void WorldSession::HandlePlayerLoginFromDB(LoginQueryHolder* holder)
SendNotification(LANG_RESET_TALENTS);
}
if (pCurrChar->HasAtLoginFlag(AT_LOGIN_FIRST))
if (pCurrChar->HasAtLoginFlag(AT_LOGIN_FIRST)) {
pCurrChar->RemoveAtLoginFlag(AT_LOGIN_FIRST);
sScriptMgr->OnFirstLogin(pCurrChar);
}
if (pCurrChar->HasAtLoginFlag(AT_LOGIN_CHECK_ACHIEVS))
{
pCurrChar->RemoveAtLoginFlag(AT_LOGIN_CHECK_ACHIEVS, true);