Merge pull request #825 from eduardosmaniotto/feature/configurable-npc-buffs
feature: configurable npc buffs (cherry picked from commit 6a061fcad756e644dadf3721e84e3cce2a25bceb)
This commit is contained in:
@@ -423,6 +423,12 @@ public sealed class Party : AsyncDisposable
|
||||
if (!shouldDispose)
|
||||
{
|
||||
this._partyMembers = this._partyMembers.Where(m => m != member).ToArray();
|
||||
|
||||
// If the party master is leaving, assign the new master to the first remaining member.
|
||||
if (this.PartyMaster == member && this._partyMembers.Length > 0)
|
||||
{
|
||||
this.PartyMaster = this._partyMembers[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user