Remove double requirement check in AreaTrigger teleport
--HG-- branch : trunk
This commit is contained in:
@@ -931,8 +931,9 @@ void WorldSession::HandleAreaTriggerOpcode(WorldPacket & recv_data)
|
|||||||
if (!at)
|
if (!at)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!GetPlayer()->Satisfy(objmgr.GetAccessRequirement(at->access_id), at->target_mapId, true))
|
// MapManager::CanPlayerEnter() calls players->Satisfy() so this is not needed here
|
||||||
return;
|
// if (!GetPlayer()->Satisfy(objmgr.GetAccessRequirement(at->access_id), at->target_mapId, true))
|
||||||
|
// return;
|
||||||
|
|
||||||
// check if player can enter instance : instance not full, and raid instance not in encounter fight
|
// check if player can enter instance : instance not full, and raid instance not in encounter fight
|
||||||
if (!sMapMgr.CanPlayerEnter(at->target_mapId, GetPlayer(), false))
|
if (!sMapMgr.CanPlayerEnter(at->target_mapId, GetPlayer(), false))
|
||||||
|
|||||||
Reference in New Issue
Block a user