Fix(core/scripts): issue 13325 - reset talents command (#13326)
Fix issue 13325 - reset talents command does not set offline player at_login flag to reset talents.
This commit is contained in:
@@ -252,7 +252,7 @@ public:
|
|||||||
else if (targetGuid)
|
else if (targetGuid)
|
||||||
{
|
{
|
||||||
CharacterDatabasePreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_UPD_ADD_AT_LOGIN_FLAG);
|
CharacterDatabasePreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_UPD_ADD_AT_LOGIN_FLAG);
|
||||||
stmt->SetData(0, uint16(AT_LOGIN_NONE | AT_LOGIN_RESET_PET_TALENTS));
|
stmt->SetData(0, uint16(AT_LOGIN_RESET_TALENTS | AT_LOGIN_RESET_PET_TALENTS));
|
||||||
stmt->SetData(1, targetGuid.GetCounter());
|
stmt->SetData(1, targetGuid.GetCounter());
|
||||||
CharacterDatabase.Execute(stmt);
|
CharacterDatabase.Execute(stmt);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user