mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-25 14:46:24 +00:00
fix(Core/DungeonFinder): Premade groups should be treated as normal groups. (#8520)
Fixes #8339
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user