fix(Core/DungeonFinder): Random Dungeon Finder always removes no perm… (#8561)

Fixes #8222
This commit is contained in:
UltraNix
2021-10-23 23:53:57 +02:00
committed by GitHub
parent 36aced608c
commit 1c77d8a9f2

View File

@@ -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);
}