mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
Fix instance binding
This commit is contained in:
@@ -2682,10 +2682,12 @@ void InstanceMap::PermBindAllPlayers()
|
|||||||
{
|
{
|
||||||
player = itr->GetSource();
|
player = itr->GetSource();
|
||||||
group = player->GetGroup();
|
group = player->GetGroup();
|
||||||
|
|
||||||
// players inside an instance cannot be bound to other instances
|
// players inside an instance cannot be bound to other instances
|
||||||
// some players may already be permanently bound, in this case nothing happens
|
// some players may already be permanently bound, in this case nothing happens
|
||||||
InstancePlayerBind* bind = sInstanceSaveMgr->PlayerGetBoundInstance(player->GetGUIDLow(), save->GetMapId(), save->GetDifficulty());
|
InstancePlayerBind* bind = sInstanceSaveMgr->PlayerGetBoundInstance(player->GetGUIDLow(), save->GetMapId(), save->GetDifficulty());
|
||||||
if ((!group || !group->isLFGGroup() || !group->IsLfgRandomInstance()) && (!bind || !bind->perm))
|
|
||||||
|
if (!bind || !bind->perm)
|
||||||
{
|
{
|
||||||
WorldPacket data(SMSG_INSTANCE_SAVE_CREATED, 4);
|
WorldPacket data(SMSG_INSTANCE_SAVE_CREATED, 4);
|
||||||
data << uint32(0);
|
data << uint32(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user