Core/Dungeon Finder: Remove Spell 72221 when leaving a dungeon using the portal

--HG--
branch : trunk
This commit is contained in:
Spp
2010-09-27 23:27:52 +02:00
parent 1afdd143d9
commit b1c97f15bf

View File

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