From 17665c929c3a9fb7fe75dd680648129bc1c1f874 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 22 Jul 2018 13:22:35 +0200 Subject: Core/Instances: Instance lock rewrite (WIP) --- src/server/scripts/Commands/cs_misc.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/server/scripts/Commands') diff --git a/src/server/scripts/Commands/cs_misc.cpp b/src/server/scripts/Commands/cs_misc.cpp index 38fda7ba51c..68b6d1b4d3e 100644 --- a/src/server/scripts/Commands/cs_misc.cpp +++ b/src/server/scripts/Commands/cs_misc.cpp @@ -419,19 +419,6 @@ public: } } - // if the player or the player's group is bound to another instance - // the player will not be bound to another one - InstancePlayerBind* bind = _player->GetBoundInstance(target->GetMapId(), target->GetDifficultyID(map->GetEntry())); - if (!bind) - { - Group* group = _player->GetGroup(); - // if no bind exists, create a solo bind - InstanceGroupBind* gBind = group ? group->GetBoundInstance(target) : nullptr; // if no bind exists, create a solo bind - if (!gBind) - if (InstanceSave* save = sInstanceSaveMgr->GetInstanceSave(target->GetInstanceId())) - _player->BindToInstance(save, !save->CanReset()); - } - if (map->IsRaid()) { _player->SetRaidDifficultyID(target->GetRaidDifficultyID()); -- cgit v1.2.3