mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-05 08:28:57 +01:00
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:
committed by
Giacomo Pozzoni
parent
e6ad9b10cf
commit
e906a2fe7d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user