mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-25 06:36:24 +00:00
fix(Scripts/Commands): Fix level up achievements not being granted (#19969)
This commit is contained in:
@@ -987,8 +987,12 @@ void WorldSession::HandlePlayerLoginFromDB(LoginQueryHolder const& holder)
|
||||
|
||||
if (pCurrChar->HasAtLoginFlag(AT_LOGIN_CHECK_ACHIEVS))
|
||||
{
|
||||
pCurrChar->RemoveAtLoginFlag(AT_LOGIN_CHECK_ACHIEVS, true);
|
||||
pCurrChar->CheckAllAchievementCriteria();
|
||||
// If we process the check while players are loading they won't be notified of the changes.
|
||||
pCurrChar->m_Events.AddEventAtOffset([pCurrChar]
|
||||
{
|
||||
pCurrChar->RemoveAtLoginFlag(AT_LOGIN_CHECK_ACHIEVS, true);
|
||||
pCurrChar->CheckAllAchievementCriteria();
|
||||
}, 1s);
|
||||
}
|
||||
|
||||
bool firstLogin = pCurrChar->HasAtLoginFlag(AT_LOGIN_FIRST);
|
||||
|
||||
Reference in New Issue
Block a user