fix(Core/DungeonFinder): Premade groups should be treated as normal groups. (#8520)

Fixes #8339
This commit is contained in:
UltraNix
2021-10-20 10:29:24 +02:00
committed by GitHub
parent fba0797f6b
commit 1ec612e65b
6 changed files with 50 additions and 16 deletions

View File

@@ -12157,7 +12157,7 @@ PartyResult Player::CanUninviteFromGroup(ObjectGuid targetPlayerGUID) const
if (!grp)
return ERR_NOT_IN_GROUP;
if (grp->isLFGGroup())
if (grp->isLFGGroup(true))
{
ObjectGuid gguid = grp->GetGUID();
if (!sLFGMgr->GetKicksLeft(gguid))

View File

@@ -2370,7 +2370,7 @@ InventoryResult Player::CanUseItem(ItemTemplate const* proto) const
InventoryResult Player::CanRollForItemInLFG(ItemTemplate const* proto, WorldObject const* lootedObject) const
{
if (!GetGroup() || !GetGroup()->isLFGGroup())
if (!GetGroup() || !GetGroup()->isLFGGroup(true))
return EQUIP_ERR_OK; // not in LFG group
// check if looted object is inside the lfg dungeon