mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 03:15:41 +00:00
fix(Core/DungeonFinder): misc improvements (#7488)
- Players should be able to enter the same dungeon if just completed it - Properly define if the proposal is new - Set teleport point to the nearest graveyard if teleported to dungeon from other instance - Display completed encounters when joining LFG in progress (excluding random) - Closes #5914 - Closes #7388
This commit is contained in:
@@ -119,8 +119,19 @@ void WorldSession::HandleGroupInviteOpcode(WorldPacket& recvData)
|
||||
}
|
||||
|
||||
Group* group = GetPlayer()->GetGroup();
|
||||
if (group && (group->isBGGroup() || group->isBFGroup()))
|
||||
group = GetPlayer()->GetOriginalGroup();
|
||||
if (group)
|
||||
{
|
||||
if (group->isLFGGroup() && group->IsLfgRandomInstance())
|
||||
{
|
||||
SendPartyResult(PARTY_OP_INVITE, membername, ERR_TARGET_NOT_IN_INSTANCE_S);
|
||||
return;
|
||||
}
|
||||
|
||||
if (group->isBGGroup() || group->isBFGroup())
|
||||
{
|
||||
group = GetPlayer()->GetOriginalGroup();
|
||||
}
|
||||
}
|
||||
|
||||
Group* group2 = player->GetGroup();
|
||||
if (group2 && (group2->isBGGroup() || group2->isBFGroup()))
|
||||
|
||||
Reference in New Issue
Block a user