From 1c77d8a9f28e38e68e21e0181a11520eb951b3ab Mon Sep 17 00:00:00 2001 From: UltraNix <80540499+UltraNix@users.noreply.github.com> Date: Sat, 23 Oct 2021 23:53:57 +0200 Subject: [PATCH] =?UTF-8?q?fix(Core/DungeonFinder):=20Random=20Dungeon=20F?= =?UTF-8?q?inder=20always=20removes=20no=20perm=E2=80=A6=20(#8561)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #8222 --- src/server/game/DungeonFinding/LFGMgr.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/server/game/DungeonFinding/LFGMgr.cpp b/src/server/game/DungeonFinding/LFGMgr.cpp index 64d7c349c..307a453d3 100644 --- a/src/server/game/DungeonFinding/LFGMgr.cpp +++ b/src/server/game/DungeonFinding/LFGMgr.cpp @@ -1720,6 +1720,14 @@ namespace lfg // Remove bind to that map sInstanceSaveMgr->PlayerUnbindInstance(player->GetGUID(), dungeon->map, player->GetDungeonDifficulty(), true); } + else + { + // RDF removes all binds to that map + if (randomDungeon && !sInstanceSaveMgr->PlayerIsPermBoundToInstance(player->GetGUID(), dungeon->map, player->GetDungeonDifficulty())) + { + sInstanceSaveMgr->PlayerUnbindInstance(player->GetGUID(), dungeon->map, player->GetDungeonDifficulty(), true); + } + } playersTeleported.push_back(player); }