fix(Core/Character): Fix OnFirstLogin script hook (#9686)
This commit is contained in:
@@ -982,9 +982,6 @@ void WorldSession::HandlePlayerLoginFromDB(LoginQueryHolder const& holder)
|
|||||||
bool firstLogin = pCurrChar->HasAtLoginFlag(AT_LOGIN_FIRST);
|
bool firstLogin = pCurrChar->HasAtLoginFlag(AT_LOGIN_FIRST);
|
||||||
if (firstLogin)
|
if (firstLogin)
|
||||||
{
|
{
|
||||||
|
|
||||||
pCurrChar->RemoveAtLoginFlag(AT_LOGIN_FIRST);
|
|
||||||
|
|
||||||
PlayerInfo const* info = sObjectMgr->GetPlayerInfo(pCurrChar->getRace(), pCurrChar->getClass());
|
PlayerInfo const* info = sObjectMgr->GetPlayerInfo(pCurrChar->getRace(), pCurrChar->getClass());
|
||||||
for (uint32 spellId : info->castSpells)
|
for (uint32 spellId : info->castSpells)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user