Game/Maps: Instance handling follow-up:

- Fix a bug where a player could maintain a conflicting non-perm solo bind if they were in the instance when invited to group. Closes #16150.
- If a group is created while the leader is in an instance that nobody is bound to, the group will take over the instance and bind to it. This stops the homebind timer when reforming group after disconnects and the like.

(cherry picked from commit 0f0a51b87a)
This commit is contained in:
treeston authored and ariel- committed 2016-01-11 01:51:25 -03:00
1 parent 94a5629949
commit 27f0edde0f
6 files changed
+45 -33

No files matched your search

+1 -1
View File
@@ -3031,7 +3031,7 @@ bool InstanceMap::AddPlayerToMap(Player* player)
{
if (group)
{
// solo saves should be reset when entering a group
// solo saves should have been reset when the map was loaded
InstanceGroupBind* groupBind = group->GetBoundInstance(this);
if (playerBind && playerBind->save != mapSave)
{