mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
Core/Dungeon Finder: Remove Spell 72221 when leaving a dungeon using the portal
--HG-- branch : trunk
This commit is contained in:
@@ -49,6 +49,7 @@
|
||||
#include "ScriptMgr.h"
|
||||
#include "MapManager.h"
|
||||
#include "InstanceScript.h"
|
||||
#include "LFGMgr.h"
|
||||
|
||||
void WorldSession::HandleRepopRequestOpcode(WorldPacket & recv_data)
|
||||
{
|
||||
@@ -936,7 +937,7 @@ void WorldSession::HandleAreaTriggerOpcode(WorldPacket & recv_data)
|
||||
|
||||
// Check if we are in LfgGroup and trying to get out the dungeon
|
||||
if (GetPlayer()->GetGroup() && GetPlayer()->GetGroup()->isLFGGroup() && GetPlayer()->GetMap()->IsDungeon() && at->target_mapId != GetPlayer()->GetMapId())
|
||||
GetPlayer()->TeleportToBGEntryPoint();
|
||||
sLFGMgr.TeleportPlayer(GetPlayer(), true);
|
||||
else
|
||||
GetPlayer()->TeleportTo(at->target_mapId,at->target_X,at->target_Y,at->target_Z,at->target_Orientation,TELE_TO_NOT_LEAVE_TRANSPORT);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user