fix(Core/Entities): fix contested flag timer when logging out and in (#8558)

This commit is contained in:
jestermaniac
2021-10-17 03:26:13 +02:00
committed by GitHub
parent 6bcebda0ee
commit 8c126075ff
3 changed files with 16 additions and 11 deletions

View File

@@ -951,7 +951,9 @@ void WorldSession::HandlePlayerLoginFromDB(LoginQueryHolder const& holder)
pCurrChar->SetByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_FFA_PVP);
if (pCurrChar->HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_CONTESTED_PVP))
pCurrChar->SetContestedPvP();
{
pCurrChar->SetContestedPvP(nullptr, false);
}
// Apply at_login requests
if (pCurrChar->HasAtLoginFlag(AT_LOGIN_RESET_SPELLS))