Core/Group: implement automatic party/raid leader change when the leader has been offline for two minutes (#23398)

* Core/Group: implement automatic party/raid leader change when the leader has been offline for two minutes.

* Add #23396 to make testing easier.

* Prioritize assistants in raids.

* Fix dumb mistake and apply suggested change, thanks VincentVanclef and jackpoz!
This commit is contained in:
Wyrserth
2019-06-15 14:19:58 +02:00
committed by Giacomo Pozzoni
parent e6ad9b10cf
commit e906a2fe7d
7 changed files with 88 additions and 9 deletions

View File

@@ -848,6 +848,8 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder* holder)
//pCurrChar->groupInfo.group->SendInit(this); // useless
group->SendUpdate();
group->ResetMaxEnchantingLevel();
if (group->GetLeaderGUID() == pCurrChar->GetGUID())
group->StopLeaderOfflineTimer();
}
// friend status